Remove data from JQuery dialog box when I close it

后端 未结 5 1340
醉话见心
醉话见心 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 01:05

    Why not create the HTML in dialog every time you open it and then do this:

    $(this).dialog("close");
    $(this).remove();
    

    ..after you're done inserting the new record, usually after

    $('#yourForm').submit();
    

    Cheers!

提交回复
热议问题