Snippets

Adjust li width fit with ul width of the outer div/body

HTML:- [crayon-692e338605d8a726260125/] CSS:- [crayon-692e338605d91964773447/] JavaScript:- [crayon-692e338605d93860140852/]  

7 years ago

Customize Input Box using jQuery

Prevent users typing special characters in text box, textarea, etc. [crayon-692e338606371493659633/] ^[a-zA-Z]+$ Alphabets ^[a-zA-Z\s]+$ Alphabets + Space Example:-

7 years ago

JavaScript simple form validation with example

Any interactive web site has form input - a place where the users input different kind of information. This data…

7 years ago

Clear the browser cache of CSS or JavaScript Using Javascript

[crayon-692e3386065f3567598595/]  

7 years ago

Simple Ajax Call

[crayon-692e338606674463924173/]  

7 years ago

Bootstrap Button Loading

[crayon-692e3386066f1743626872/] [crayon-692e3386066f3993609022/]  

7 years ago

How can I disable an option in a select box based on its value in JavaScript?

[crayon-692e33860677e877318886/] Without enabling non-targeted elements: [crayon-692e338606780736948895/] jQuery With jQuery you can do this with a single line: [crayon-692e338606781009494356/] Without enabling…

7 years ago

jQuery : Disable and Enable Selected Options in DropDownList

To disable the selected option from select input element, following piece of code can be used, [crayon-692e338606840939218859/] and to enable…

7 years ago

Javascript Slugify

[crayon-692e338606f64420354923/]  

7 years ago