0
favorites
favorites
0
comments
comments
Jquery Accordion
Jquery accordion. Easy customization with CSS. ...
0
favorites
favorites
0
comments
comments
jQuery Tabs
A simple jquery tab.
You can style it as you want with CSS. :)
...
0
favorites
favorites
0
comments
comments
element exists?
A function to check if an element exists. (Hope i'll never forget) ...
0
favorites
favorites
1
comment
comment
Get cursor position of clicked mouse on a HTML5 Canvas
Javascript function to get mouse position on a HTML5 canvas element. ...
0
favorites
favorites
1
comment
comment
String.format() in JS a la Python
String.format() in JS a la Python
Usage:
var myString="My name is {0} and I am {1} years old"
formattedString=myString.format(['sayan',27]) ...
0
favorites
favorites
2
comments
comments
Input Mask
A jQuery script allowing you to make default value of an input disappear when focused on that input and reappear only if the user focus out of the input and the input is empty. ...
0
favorites
favorites
2
comments
comments
Disappearing search field text (jQuery)
Hide when clicked in the search field, the value.(example can be found below in the comment fields) ...
0
favorites
favorites
2
comments
comments
JScript :: + operator
The arithmetic operator + is used to add values together.
When operands are strings, which means a string concatenation happens.
When the plus operator is used with a number and a string, the number gets converted to a string and then string concatenation is performed.
...
64
favorites
favorites
3
comments
comments
Submit a form by hitting the enter button inside an input field with jQuery
Users a used to submit a form without clicking the submit button of a form. They expect to get to the next step or page just by hitting the enter button. The code snippets binds the keypress action to all form with the specific CSS-class "enter-submit". In order to bind the action also for ajax-loaded elements we use the binding function "live". ...