Snippets

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

HTML:- [crayon-68baa85904c53200172744/] CSS:- [crayon-68baa85904c62083877643/] JavaScript:- [crayon-68baa85904c65596337345/]  

6 years ago

Customize Input Box using jQuery

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

6 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…

6 years ago

Clear the browser cache of CSS or JavaScript Using Javascript

[crayon-68baa859057dc690206268/]  

7 years ago

Simple Ajax Call

[crayon-68baa859058ba210140276/]  

7 years ago

Bootstrap Button Loading

[crayon-68baa85905996840091036/] [crayon-68baa8590599c925434875/]  

7 years ago

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

[crayon-68baa85905a90532815828/] Without enabling non-targeted elements: [crayon-68baa85905a95643384035/] jQuery With jQuery you can do this with a single line: [crayon-68baa85905a97374588742/] 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-68baa85905bbe233164102/] and to enable…

7 years ago

Javascript Slugify

[crayon-68baa85907fac617681171/]  

7 years ago