Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
jQuery plugin that let you specify a maximum length on a text field and optionaly specify the change the focus when that maximum length has been reach. Nice when making multiple input text to create a telephone form.
Example: $("#telephone_1").maxLe...
0
663
posted 14 years ago by frankyfish
What it does is look for img tag and on rollover change the source path from "anyimage.jpg" to "anyimage_hover.jpg". It add the suffix "_hover" at the end of the src name without changing the extension. If you look at the code you will see that it al...
0
782
posted 14 years ago by frankyfish
Show/hide an paragraph when you click on the h2, suppose you have:
<h2><a href="#">Designer info</a></h2>
<p>Lorem ipsum dolor sit amet.</p>
You can show/hide the paragraph with the code below.
0
586
posted 14 years ago by marcelodornelas
This is a method that I use to easily wrap an HTML container with nice curly quotes. I much prefer this method over using images because the quotes can be easily stylized using css fonts, colors, and sizes. Also, the markup is semantically correct.
1
988
posted 14 years ago by MikeyLikesIt
include jQuery, jQuery ui and jQuery cookie plugin. Simple.
0
1091
posted 14 years ago by vagrantradio
NOTE: THIS HAS BEEN MOVED TO GITHUB:
If you have any ideas or improvements for this script feel free to fork or contribute or discuss over there:
https://github.com/adamcoulombe/jquery.customSelect
Plugin Download: http://www.adamcoulombe.info...
2
1586
posted 14 years ago by adamcoulombe
1. Use absolute positioning to place label over the text box
2. Hide label except when JS is enabled
3. Use jQuery to hide label when field receives focus
1
684
posted 14 years ago by flicity
A lightweight, collapsable menu script that works no matter how many nested lists there are.
1
578
posted 14 years ago by matthalliday
If body has lang="fr" then add a special class.
We can't use the CSS pseudo selector :lang(fr) because there is currently no support in Safari.
0
591
posted 14 years ago by matthalliday
This is assuming that you have SlideDeck loaded already.
http://www.slidedeck.com/
0
675
posted 14 years ago by Jamie
Catches click, if element has nextUntil elements, triggers a slideDown of child elements and returns false (to stop the anchor), if there are no nextUntil elements, does nothing and allows the click through (the anchor works).
0
721
posted 14 years ago by daulex
JavaScript
jQuery LimitCharWidth: Allows you to collapse the inner text so that it adjust into specific width.
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1
1087
posted 14 years ago by jaff