• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jquery Modal Edits

New to jquery but making some progress. I was able to get jquery modal to work for inserting a new record and passing to controller, etc, however on my view, I cannot get the modal box to populate the database value.

I have Googled , but everything I can find is about inserting data not editing and saving.

Basically I have several rows of notes. On each row there is an edit button. Clicking on Edit will open the query modal window with the text area populated with the note. Any examples or pointers would be helpful.

There are several ways you can do this.

1. If you have the note displayed in your table, and not just a portion of it, you can use javascript to grab the value of the note text from the table and insert it into the textarea before opening the modal.

2. Do an ajax call to your server to get the note values and on successful return of the ajax call, populate the textarea, then open the modal.

Those are the two ways I know to do it.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.