Hi,
I need to implement a password strength indicator. To indicate the password's quality I want the password input text box to change it's background color from red to green when the user enters a character.
Since the RadTextBox's client-event "OnKeyPress" is not thrown on delete keys, I use
"onKeyUp" here is my JavaScript function which shall set the background color to red
(just for debugging purposes):
function checkPassword() { |
var passwdBox = $find("<%= PasswordBox.ClientID %>"); |
passwdBox.get_styles().EnabledStyle[0] += "background-color: Red;"; |
passwdBox.updateCssClass(); |
} |
The problem is, that the color simply does not change. What's wrong with my code?
Best regards,
Robert