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 snippets by Soon-Ghil Park
get random img src
jQuery
0
3
1225
set meta equiv for old ie to edge
jQuery
0
0
1126
detect browser
jQuery
0
4
1099
animation easing function
jQuery
0
0
1107
better faster each for loop
jQuery
0
1
918
run callback function
jQuery
0
0
987
img src toggler
jQuery
0
0
1018
active current object with siblings
jQuery
0
0
1026
set z-index
jQuery
0
0
948
return window vertical center postion offset by element's height
jQuery
0
0
1006
return element index within min/max value
jQuery
0
0
1001
return element in viewport
jQuery
0
0
1011
get element index with siblings
jQuery
0
0
973
get indexed anchor element
jQuery
0
0
955
throttle with setTimeout
jQuery
0
0
1000
remove prefixed class
jQuery
0
0
1098