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

后端 未结 2 905
慢半拍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: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.

提交回复
热议问题