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 757 posted 6 years ago by xtine777
This is a simple way to make custom checkboxes in jQuery.
0 705 posted 8 years ago by del4y
To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
0 974 posted 9 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0 1320 posted 9 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0 879 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 771 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 719 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 719 posted 9 years ago by pmw57
Vérifie si une checkbox a été cochée
0 937 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 780 posted 9 years ago by Igeco
N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
0 706 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 882 posted 10 years ago by muzahidict
Avoid history back when is pressed backspace key in number imput
0 547 posted 10 years ago by porquero
Track user interactions with html forms
1 850 posted 10 years ago by nicom
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 495 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 968 posted 11 years ago by adambundy
jQuery
0 472 posted 11 years ago by msstar
Logging In with InstaLib
0 483 posted 11 years ago by kreativemente
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0 656 posted 11 years ago by satie83
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0 638 posted 11 years ago by Narayon
Javascript/jQuery to check for the time
0 538 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 841 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 790 posted 12 years ago by FatFolderDesigner
jQuery to set the width of some text to the width of a given element.
0 689 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 620 posted 12 years ago by jbernus
0 458 posted 12 years ago by timarney
1 671 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 1231 posted 12 years ago by claudiowebdesign
« Prev 1 2 3 4 5 6