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
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.