Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



1 ... 7 8 9 10 11 ... 33
Format a date into a string using several string variables. Usage: (new Date("6/6/2011")).format("%W, %B %d%o, %Y"); Result: Monday, June 6th, 2011
0 1992 posted 14 years ago by wizard04
Based on Prototype JS String#gsub
0 1339 posted 14 years ago by kendsnyder
0 1696 posted 14 years ago by cmndo
Este es un programa que los puntajes y las calificaciones correspondientes a dicho puntaje.
0 1059 posted 14 years ago by AgustinAlvia
Use whatever is needed to select the input box. $('#searchBoxOuter td.ms-sbcell input') reflects some custom master page html I have so I used that.
0 2361 posted 14 years ago by rumremix
Reset input type text onfocus if value differs from default.
0 1429 posted 14 years ago by smonteru
0 1230 posted 14 years ago by wbednarski
Calculating Compound Interest. Real time [Compound Interest Calculator](http://ncalculators.com/interest/compound-interest-calculator.htm "Real time result")
0 1046 posted 14 years ago by vinotht
Basic Google Maps initialize code
0 1610 posted 14 years ago by marzsman
Center the map on an array of latlng values
0 1943 posted 14 years ago by marzsman
How to create a popup window in Magento
0 1422 posted 14 years ago by ronal
0 1294 posted 15 years ago by CJness
Example: April 5th, 2011
0 1446 posted 15 years ago by trusktr
0 1285 posted 15 years ago by anagai
Basically creates a log function on the window object and uses console.log or alert depending on which is supported. Very basic and simple but definitely useful.
0 1463 posted 15 years ago by alvincrespo
Window.onload chaining using Namespaces.
0 1123 posted 15 years ago by derdesign
Replace English numbers with Arabic numbers in browsers supporting Unicode & JavaScript. Credits to http://www.swalif.net/softs/swalif54/softs232281/
0 3479 posted 15 years ago by mooparmghor
Link body class names to trigger javascript. It requires jQuery.
0 1811 posted 15 years ago by cmndo
Don't forget to include jQuery validation plugin before this snippet. You can find it here: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
0 2452 posted 15 years ago by racl101
Brilliant solution using Object.prototype.toString() Test cases included (commented out)
0 1322 posted 15 years ago by wizard04
Enhanced cross-browser event handling
0 1816 posted 15 years ago by wizard04
1 ... 7 8 9 10 11 ... 33