HTML:- [crayon-67a5b7343040b188827039/] CSS:- [crayon-67a5b73430412822608517/] JavaScript:- [crayon-67a5b73430414227597076/]
Prevent users typing special characters in text box, textarea, etc. [crayon-67a5b73430724058408335/] ^[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-67a5b73430972884871336/]
[crayon-67a5b73430a87573012349/] [crayon-67a5b73430a89285336673/]
[crayon-67a5b73430b0c418742548/] Without enabling non-targeted elements: [crayon-67a5b73430b0e283857295/] jQuery With jQuery you can do this with a single line: [crayon-67a5b73430b0f047735680/] Without enabling…
To disable the selected option from select input element, following piece of code can be used, [crayon-67a5b73430bb5445742324/] and to enable…