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 786 posted 6 years ago by xtine777
This is a simple way to make custom checkboxes in jQuery.
0 729 posted 9 years ago by del4y
To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
0 1003 posted 9 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0 1353 posted 9 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0 901 posted 9 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 797 posted 9 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 746 posted 9 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 742 posted 9 years ago by pmw57
Vérifie si une checkbox a été cochée
0 973 posted 9 years ago by Igeco
Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
0 815 posted 9 years ago by Igeco
N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
0 734 posted 9 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 931 posted 10 years ago by muzahidict
Avoid history back when is pressed backspace key in number imput
0 572 posted 10 years ago by porquero
Track user interactions with html forms
1 882 posted 10 years ago by nicom
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 510 posted 10 years ago by lubosfonio
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 994 posted 11 years ago by adambundy
jQuery
0 489 posted 11 years ago by msstar
Logging In with InstaLib
0 499 posted 11 years ago by kreativemente
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0 683 posted 11 years ago by satie83
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0 660 posted 12 years ago by Narayon
Javascript/jQuery to check for the time
0 557 posted 12 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 870 posted 12 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 815 posted 12 years ago by FatFolderDesigner
jQuery to set the width of some text to the width of a given element.
0 717 posted 12 years ago by Narthur
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 646 posted 12 years ago by jbernus
0 479 posted 12 years ago by timarney
1 699 posted 12 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 1258 posted 12 years ago by claudiowebdesign
« Prev 1 2 3 4 5 6