Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged javascript



« Prev 1 2 3 4 5 6
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 2284 posted 7 years ago by xtine777
This is a simple way to make custom checkboxes in jQuery.
0 1333 posted 10 years ago by del4y
To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
0 1659 posted 10 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0 2086 posted 10 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0 1480 posted 10 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 1438 posted 10 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 1307 posted 10 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 1362 posted 10 years ago by pmw57
Vérifie si une checkbox a été cochée
0 2388 posted 10 years ago by Igeco
Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
0 2321 posted 10 years ago by Igeco
N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
0 2235 posted 10 years ago by sebabarre
/* author : MD. MUZAHIDUL ISLAM ([email protected]) * file name : cascade-load.js * This segment of code uses jQuery(jquery-1.7.2.js) that helps to load cascade data from sever. * To use this code, 'div' element should contains a 'select' h...
0 1648 posted 11 years ago by muzahidict
Avoid history back when is pressed backspace key in number imput
0 1145 posted 11 years ago by porquero
Track user interactions with html forms
1 1399 posted 11 years ago by nicom
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 960 posted 12 years ago by lubosfonio
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 1625 posted 12 years ago by adambundy
jQuery
0 932 posted 12 years ago by msstar
Logging In with InstaLib
0 1105 posted 12 years ago by kreativemente
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0 1193 posted 13 years ago by satie83
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0 2064 posted 13 years ago by Narayon
Javascript/jQuery to check for the time
0 1107 posted 13 years ago by poot26
This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).
1 1453 posted 13 years ago by Huskie
There are 2 jQuery snippets, both replace broken images with one of your choosing, the difference is that one is "safe" and the other is "persistent". The safe one will quick working, so if your doing something that dynamically changed images on a pa...
3 1581 posted 13 years ago by FatFolderDesigner
jQuery to set the width of some text to the width of a given element.
0 1269 posted 13 years ago by Narthur
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 1174 posted 13 years ago by jbernus
0 959 posted 13 years ago by timarney
1 1221 posted 13 years ago by vitorbari
Hi everyone, a while ago i posted a little script that reproduced a little animation effect seen in Windows 8 Developer Preview. I thought about expanding it some more, and in the end i started actually recreating the whole Metro interface in HTML5/C...
1 2138 posted 13 years ago by claudiowebdesign
« Prev 1 2 3 4 5 6