HTML:- [crayon-662d1a4776930417515464/] CSS:- [crayon-662d1a477693a476181757/] JavaScript:- [crayon-662d1a477693d245063682/]
Prevent users typing special characters in text box, textarea, etc. [crayon-662d1a4776eec666619673/] ^[a-zA-Z]+$ Alphabets ^[a-zA-Z\s]+$ Alphabets + Space Example:-
Any interactive web site has form input - a place where the users input different kind of information. This data…
[crayon-662d1a477724b025060925/]
[crayon-662d1a477745b651152871/] [crayon-662d1a4777461423126107/]
[crayon-662d1a4777575982683613/] Without enabling non-targeted elements: [crayon-662d1a477757a617295771/] jQuery With jQuery you can do this with a single line: [crayon-662d1a477757d982582150/] Without enabling…
To disable the selected option from select input element, following piece of code can be used, [crayon-662d1a477772a006234106/] and to enable…