Snippets

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

HTML:- [crayon-67a5b7343040b188827039/] CSS:- [crayon-67a5b73430412822608517/] JavaScript:- [crayon-67a5b73430414227597076/]  

6 years ago

Customize Input Box using jQuery

Prevent users typing special characters in text box, textarea, etc. [crayon-67a5b73430724058408335/] ^[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-67a5b73430972884871336/]  

6 years ago

Simple Ajax Call

[crayon-67a5b73430a11339670454/]  

6 years ago

Bootstrap Button Loading

[crayon-67a5b73430a87573012349/] [crayon-67a5b73430a89285336673/]  

6 years ago

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

[crayon-67a5b73430b0c418742548/] Without enabling non-targeted elements: [crayon-67a5b73430b0e283857295/] jQuery With jQuery you can do this with a single line: [crayon-67a5b73430b0f047735680/] Without enabling…

6 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-67a5b73430bb5445742324/] and to enable…

6 years ago

Javascript Slugify

[crayon-67a5b73430c3e421432334/]  

6 years ago