EasyUI Forum
November 05, 2025, 12:50:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Form with password field - Can not set the password field empty  (Read 9649 times)
jaimi
Full Member
***
Posts: 121


View Profile
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: September 29, 2016, 02:20:31 AM »

Please call 'clear' method to clear its value.
Code:
$(currentInput).passwordbox('clear');
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 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?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!