Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
jQuery
46
snippets by
Alessandro Annini
Check if cookies are enabled
JavaScript
0
0
871
Toggle all checkboxes
JavaScript
0
0
917
Get the index of an element
JavaScript
0
0
853
Validate date of birth
JavaScript
0
0
921
Test if an element is visible
JavaScript
0
0
841
Counting child elements
JavaScript
0
0
866
Center an element on the screen
JavaScript
0
1
909
Moving options from list A to list B
JavaScript
0
0
846
Select all checkboxes
JavaScript
0
0
875
Get the current URL
JavaScript
0
0
931
Check if and which key was pressed
JavaScript
0
0
1059
How to refresh the src of an image with jQuery?
JavaScript
0
0
879
How to see if an image is loaded or not with jquery
JavaScript
0
0
829
And if a set (example : 10 images) of images are loaded
JavaScript
0
0
850
How to remove selected text after mouse double click event
JavaScript
0
0
970
Validate email address
JavaScript
0
0
879
How to order a <ul> element using jQuery
JavaScript
0
0
906
Passing parameters to a function called with setTimeout
JavaScript
0
0
879
Disable right mouse click
JavaScript
0
0
902
Fade out an image, and fade in another one (replacing the previous one)
JavaScript
0
0
920
Write your own selectors
JavaScript
0
0
925
Run a function 5 times with intervals of 20 seconds
JavaScript
0
0
932
Check if an element exists
JavaScript
0
0
841
Cancel an ajax request
JavaScript
0
0
920
How to hide all children div except a specific one with jQuery
JavaScript
0
0
1974
Detecting when a div’s height changes using jQuery
JavaScript
0
0
15613
Delete all table rows except first
JavaScript
0
0
843
Selecting root element of a certain level in the document
JavaScript
0
0
767
Searching a string in jQuery
JavaScript
0
1
1011
Get the distance scrolled from top
JavaScript
0
0
815
Select all elements except the ones with a given class
JavaScript
0
0
830
Add a row to a table
JavaScript
0
0
821
How to convert decimal to hexadecimal?
JavaScript
0
0
791
Filtering By More Than One Attribute in JQuery
JavaScript
0
0
846
How to expire a cookie in x minutes
JavaScript
0
0
877
Selecting the first x items with jQuery
JavaScript
0
0
872
Working with a select element
JavaScript
0
0
879
How to parse XML with jQuery
JavaScript
0
0
963
How to get the number in the ids
JavaScript
0
0
1121
How to transform a number like 12343778 into 12.343.778
JavaScript
0
0
853
Count number of textarea lines
JavaScript
0
0
837
Logging to the firebug console
JavaScript
0
0
860
Find X/Y of an HTML element with Javascript
JavaScript
0
0
853
Validate Credit Card
JavaScript
0
1
1247
Distinguish left and right mouse click
JavaScript
0
1
898
How to get the native image size
JavaScript
0
0
904