Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Be sure to call the exact version desired or the script is only cached for one hour!
http://encosia.com/2009/10/11/do-you-know-about-this-undocumented-google-cdn-feature/
1
1661
posted 15 years ago by housecor
Learn how to test for CSS property support in specific browsers using this simple Javascript technique.
2
1310
posted 15 years ago by neal_grosskopf
Get the latest 5 titles from the Tumblr API using jquery
0
1506
posted 15 years ago by morningcatmedia
We set up a voting page, where supporters would choose one of three candidates (only two are shown in the snippet). By clicking the checkbox, the supporter would add themselves to a Salsa group. This way only one vote for a candidate by a supporter w...
0
1203
posted 15 years ago by powerthru
this is a way to deal with the fact that we can\'t reliably make checkboxes look larger on forms. So instead, we surround the form with a colored div, and set it up so that when the user clicks on the label next to the checkbox it checks the box.
0
1359
posted 15 years ago by powerthru
Simply pass in array name and the value of the item you want to remove
1
1628
posted 15 years ago by myke
Code in single.php, loop.php, index.php, page.php, category.php, und archive.php , innerhalb des loops einfügen.
0
1344
posted 15 years ago by PM-Webdesign
Was using this to disable certain js functionality as it wasnt working on apple\'s webkit
2
1646
posted 15 years ago by thiswayup
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
6
1818
posted 15 years ago by riddla
Just a fun and silly way to asynchronously update tweets about Justin Bieber.
3
1814
posted 15 years ago by Nettuts
The following JavaScript will validate an email address using strict rules when a form is submitted.
0
1426
posted 15 years ago by jprochazka
The following JavaScript will validate if a 10 digit phone number was supplied once the form is submitted.
0
1146
posted 15 years ago by jprochazka
pass in 2 json objects returns an array of all differences included those nested in children.
_Q used internally to pass through to self, do not pass in _Q
0
1630
posted 15 years ago by tennison
This code is pretty simple but massively useful. You can select any number of elements on the stage in Flash, then run this JSFL Command and it will round their x and y values to the nearest whole number. It's very handy when you want things to be on...
1
1444
posted 15 years ago by jknight42