Welcome To Snipplr


Everyone's Recent jQuery Snippets



« Prev 1 2 3 4 5 ... 31
Hide parent element, when child element has a specific class. In this case: child element = .no-news-found parent element = .csc-default (= content element containing the news plugin with header)
0 93 posted 2 years ago by xtine777
Here’s a super handy snippet that I use very often. It works very simply: once the user clicks on #submit, the data from #form is serialized and sent to a remote page using the POST method.
0 239 posted 2 years ago by catswhocode
Use it to detect old browser, when your client still use an old browser!
0 153 posted 3 years ago by ginoplusio
Switch between text on button every second
0 107 posted 4 years ago by envane21
Counter from 0 to number
0 111 posted 4 years ago by envane21
Loop between images on hover
0 127 posted 4 years ago by envane21
Endless loop between 3 images
0 97 posted 4 years ago by envane21
change <span> value of button with jquery
0 132 posted 4 years ago by envane21
IIFE - Immediately Invoked Function Expression. http://gregfranko.com/jquery-best-practices/#/7 http://gregfranko.com/jquery-best-practices/#/8
0 126 posted 4 years ago by Waltem
JQUERY READY EVENT BEST PRACTICE
0 98 posted 4 years ago by SmellWing
The basic structure of making a page responsive
0 94 posted 4 years ago by envane21
A simple left-right animation
0 99 posted 4 years ago by envane21
Add class .green to class .payment-container and make it flash every 3 seconds
0 97 posted 4 years ago by envane21
Submit function for Foundation framework
0 84 posted 4 years ago by envane21
Used to automatically scroll up the page so that it is focused on user entry (mobile devices)
0 99 posted 4 years ago by envane21
First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery script to that file (you don't need <script> tags in a .js fi...
0 192 posted 4 years ago by designermedia
durr
0 134 posted 5 years ago by olesla
This is a simple way to make custom checkboxes in jQuery.
0 105 posted 5 years ago by del4y
Useful when using a template or Wordpress and the LeadPages code is called on every page and there is a single page you don't want the fancy exit marketing signup form to appear. The LeadBox external code has a boolean variable called 'safetyCheck...
0 97 posted 5 years ago by mountainash
Check if the user input zip code is in an array.
0 237 posted 5 years ago by devstori
To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
0 171 posted 5 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0 231 posted 5 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0 149 posted 5 years ago by luhonghai
JQuery is really a powerful and handy JavaScript library. The page or content loading effect is very easy to implement in jQuery. Here’s a example to make your web page content display a fade in page loading effect
0 142 posted 5 years ago by luhonghai
Bei dieser Variante lassen sich die Checkboxen nur einmal aktivieren/deaktivieren. Bei weiteren Versuchen wird zwar im Quelltext altiviert/deaktiviert, es ist aber auf der Seite nicht zu sehen.
0 128 posted 5 years ago by ulfinger
The purpose of this hook method is to help provide a separation of concerns between CSS and JavaScript. Typically class names are used to attach JavaScript to HTML elements. Using a separate data-hook attribute helps to protect the scripting from...
0 109 posted 5 years ago by pmw57
Mit dem php-Script innerhalb der Seite wird aus der SQL-Datenbank ein Javascript-Array zusammengestellt. Darauf greift das autocomplete-Widget zu.
0 131 posted 5 years ago by ulfinger
Vérifie si une checkbox a été cochée
0 151 posted 5 years ago by Igeco
Please visit http://pantuts.com/2014/09/21/quicknote-jquery-plugin/ for other included files and demos. Thanks
0 128 posted 5 years ago by pantuts
Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
0 126 posted 5 years ago by Igeco
« Prev 1 2 3 4 5 ... 31