EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on September 29, 2016, 12:06:12 AM



Title: Form with password field - Can not set the password field empty
Post by: jaimi on September 29, 2016, 12:06:12 AM
I have a Form with a password field. I want to set the value of the password-field to empty.

   if (currentName == "PUA_PWD") {
    vTooltip = "Geben Sie Ihr Passwort ein.";
    vPlaceholder = "Passwort...";
   currentInput.val("");
   $(this).attr("maxlength","15")
           .css("width","250");
   };

Doesn't work. Every ideas?


Title: Re: Form with password field - Can not set the password field empty
Post by: jarry on September 29, 2016, 02:20:31 AM
Please call 'clear' method to clear its value.
Code:
$(currentInput).passwordbox('clear');


Title: Re: Form with password field - Can not set the password field empty
Post by: jaimi on October 08, 2016, 02:04:40 AM
Please call 'clear' method to clear its value.
Code:
$(currentInput).passwordbox('clear');

i don't now how to integrate this snipped to my code.
I tried several.
to what refers the part passwordbox?