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 80 posted 2 years ago by xtine777
Use it to detect old browser, when your client still use an old browser!
0 134 posted 3 years ago by ginoplusio
This is a simple way to make custom checkboxes in jQuery.
0 88 posted 5 years ago by del4y
To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
0 154 posted 5 years ago by luhonghai
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
0 206 posted 5 years ago by luhonghai
To check if jQuery library is loaded, use the following JavaScript code
0 131 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 128 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 114 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 99 posted 5 years ago by pmw57
Vérifie si une checkbox a été cochée
0 137 posted 5 years ago by Igeco
Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
0 114 posted 5 years ago by Igeco
N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
0 90 posted 5 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 98 posted 6 years ago by muzahidict
Avoid history back when is pressed backspace key in number imput
0 67 posted 6 years ago by porquero
Track user interactions with html forms
1 110 posted 6 years ago by nicom
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 68 posted 7 years ago by lubosfonio
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 159 posted 7 years ago by adambundy
jQuery
0 51 posted 7 years ago by msstar
Logging In with InstaLib
0 79 posted 7 years ago by kreativemente
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0 105 posted 8 years ago by satie83
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0 99 posted 8 years ago by Narayon
Javascript/jQuery to check for the time
0 66 posted 8 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 126 posted 8 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 117 posted 8 years ago by FatFolderDesigner
jQuery to set the width of some text to the width of a given element.
0 95 posted 8 years ago by Narthur
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 70 posted 8 years ago by jbernus
0 66 posted 8 years ago by timarney
« Prev 1 2 3 4 5 6