Link to home
Start Free TrialLog in
Avatar of maqskywalker
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.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Is the button disabled if there is any /> or </ in the text
OR
Is the button disabled only at the point that you type the > in '/>'' or the '/' in '/>'
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maqskywalker
maqskywalker

ASKER

Thanks! Great example!
You are welcome.