update data through j-query popup
Have you successfully retrieved the data and displaying the retrieved fields along with the link?
I guess you are able to display the data along with the links to do the editing and you are stuck with edit and update part.
So, I think you are not much experienced with Dom Manipulation. Go through these things specially - .html(), .text() and practice a few demos.
Then go back to your code and do the following:-
- while you are generating the html containing the retrieved data, assign them proper ids.
- on clicking a link use
.text()
or.html()
to read the value and again use them to put values to the input field of your popup (you have to use proper ids while generating the popups). Are you doing any such thing? You say on clicking your text box is empty. So, check very properly the ids that you are assigning during the html generation. - Then on submitting, I guess you want the data to be updated in db without a page reload. Then you have to use jQuery.ajax().
Ask with more details if you are still stuck.
精彩评论