I have this:
But when I type in the textbox - no alert comes up. I just type and type and no alert ever comes up. Why is this not working?
Tried in IE 11, Chrome 42.0, and FF 37.0. Using .NET 4.0.
Also tried the "
onkeypress" event. Same results. I cannot get the alert to come up.
The textbox definition is:
asp:TextBox ID="txtNew" TextMode="Password" runat="server" MaxLength="256
Tried removing the TextMode attribute but the result is still the same.
Ultimately, what I want to do is this:
CheckChars() is my JS script. However when it didn't work, I just put an '
alert()' in there to see if even that would work.