maqskywalker
asked on
checking input of textbox
This is a follow up to this ticket.
https://www.experts-exchange.com/questions/29097874/using-jquery-or-JavaScript-to-prevent-user-from-typing-a-character-string-in-a-textbox.html?anchor=a42554070¬ificationFollowed=207158836&anchorAnswerId=42554070#a42554070
This is just for learning purposes, learning to work with regex.
So in the example in that ticket, how would I revise it to the following.
Either using regex or jquery or JavaScript.
Add a button called Button1.
If I type the less than sign proceded by the forwad slash sign like this </ then hide the button.
If I type the greater than sign preceded by the forwad slash sign like this /> then hide the button.
https://www.experts-exchange.com/questions/29097874/using-jquery-or-JavaScript-to-prevent-user-from-typing-a-character-string-in-a-textbox.html?anchor=a42554070¬ificationFollowed=207158836&anchorAnswerId=42554070#a42554070
This is just for learning purposes, learning to work with regex.
So in the example in that ticket, how would I revise it to the following.
Either using regex or jquery or JavaScript.
Add a button called Button1.
If I type the less than sign proceded by the forwad slash sign like this </ then hide the button.
If I type the greater than sign preceded by the forwad slash sign like this /> then hide the button.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! Great example!
You are welcome.
OR
Is the button disabled only at the point that you type the > in '/>'' or the '/' in '/>'