jeditable callback has empty values //OR// How to display edited text after clicking save button?

后端 未结 2 904
慢半拍i
慢半拍i 2021-01-21 10:50

I have following code which attached and launches the editable properly on the div elements in the HTML table. the table is generated via ajax call. I am able to update the back

相关标签:
2条回答
  • 2021-01-21 11:50

    resolved: the way it works is: the ajax call of the function has to return something, which you can parse using the callback function. so once my ajax call started to spit out data. i was good.

    tx all.

    0 讨论(0)
  • 2021-01-21 11:54

    Yes. Your AJAX function must return a String on which will be used on the textarea you just edited.

    When I used this, my AJAX call returns 2 things, A Success/Fail flag, and the return message. I display the return message somewhere to notify the user that the operation is successful or not. I then use the callback function to actually update my target text area.

    0 讨论(0)
提交回复
热议问题