Input value in dialog reset when clicking in an input value of the form

Input value in dialog reset when clicking in an input value of the form

Hello everybody,

I have a problem when using dialog.

I open the dialog like this :

  1. $("#nomDial").val("test");
  2. $('#dialog-form').dialog('open');
When the dialog open, the input value is set to test, but when i click in any other input object of the form element, this value is reset to nothing "" and the input value is getting blank...

I need help for this !!! THanks