开发者

update data through j-query popup

i want to开发者_运维百科 retrieve data from database table and make a link to every retrieved field when i click the link a query popup open and in that popup there should be textboxes and a update button

Is it possible to update data in jquery 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:-

  1. while you are generating the html containing the retrieved data, assign them proper ids.
  2. 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.
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜