jquery clean old dialog

前端 未结 3 1167
盖世英雄少女心
盖世英雄少女心 2021-01-22 16:37

I am trying to use UI dialog to create a modal dialog.

The dialog workscorrectly, and all is well. I close the dialog using the \"X\" in the corner. I tried using

3条回答
  •  情书的邮戳
    2021-01-22 17:00

    As Ra Yell said, is better to clean it before closing it, this way you don't have to worry about it when you open the dialog again.

    $('input').val('');
    

    The previous instruction worked for me.

提交回复
热议问题