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
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • jQuery
Smooth scroll to anchor
jQuery
0
4
2821
Add '.active' to link determined by URL
jQuery
0
3
2005
jQuery Enque
jQuery
0
0
1772
Nono número
jQuery
0
0
1778
Accordion Menu
jQuery
0
3
1984
Center an Element
jQuery
0
4
1840
Create your own Selector
jQuery
0
0
1848
Using jQuery to Detect When CSS3 Animations and Transitions End
jQuery
0
3
2752
SVG to PNG fallback for Images
jQuery
0
5
5562
JS: Page load fade in
jQuery
0
2
1909
One page nav on and off states based on scrollTop
jQuery
0
3
2021
Use "Enter" as "Tab"
jQuery
0
0
1732
Fix YouTube iFrame Z-index issues using jQuery
jQuery
0
3
1779
Shortcut for JQuery if/else Statement: Handling the JQuery API
jQuery
0
4
2234
jQuery Slow Each Function
jQuery
0
2
1756
jQuery Set Delay Function
jQuery
0
2
1862
Multiple Colorboxes on one website
jQuery
0
3
1972
Hover Intent (Timeout)
jQuery
0
3
2031
Add to Bookmarks button
jQuery
0
3
38444
Creating Double Horizontal Scrollbar
jQuery
0
3
4783