javascript - Alert on Specific Text Entered In Input Field -
On my webpage I have two login scripts, paid members for free members and one for one < / P>
During registration, the username is provided by serverside with the use of mysql id ... "for members" evachan2014001 "for free members and" evachanfree001 "both mysql database for free and paid subscribers Is different.
Do I get alerts (like - Is for the members ... etc ...) If a user enters a word "free" (i.e. the username is present in the "evachanfree001" in the input field) - username input field? < / Div>
call and Similar javascript Write specific function onloor textbox for the event (the function calls when the focus changes from the text box Like):
& lt; input name = "username" id = "username" onblur = "check ()" & gt;
& lt; Script & gt; Function check () {var name = document.getElementById ('username'). Values; If (name.indexOf ('free')> 1) // gives 1 if the value to search is never done (warning ("This log form is for payment members."); Details are false Is;}}
Comments
Post a Comment