Remove data from JQuery dialog box when I close it

后端 未结 5 1333
醉话见心
醉话见心 2021-02-06 00:31

I have JQuery dialog box for inserting new row in table. And everything works good. Few days ago when I inserted FlexiGrid for Table started a problem for me. When I insert new

5条回答
  •  北海茫月
    2021-02-06 00:58

    Would it work if you add this line to the function of Save or Cancel?

     $( "#newDialog-form" ).html("");
    

    or more straight method (thx @mplungjan):

     $( "#newDialog-form" ).empty();
    

    It makes that all the content inside the dialog disappear, it's the best way so that last data does not appear.

提交回复
热议问题