Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



1 2 3 4 5 6 ... 44
How does it work? This code checks/unchecks all checkboxes within the same fieldset. Simple and semantic. HTML Setup Add checkboxes however you like, just make sure they are within the same fieldset. <fieldset> <!--> <div><input>...
1 446 posted 10 years ago by dnnsldr
Here’s a handy bit of code that I use quite regularly, its particularly useful if your getting a response message from a form to notify the user that there data was sent, or comunicate an error and you want to fade the message out after a set time.
1 624 posted 10 years ago by dnnsldr
//This will grab taxonomies three levels deep (parent, child, grandchild) and display them //in an accordion fashion. Parent is the header, then child with a checkbox, if checked, will //display grandchild taxonomies. //Uses jQuery Accordion (do...
0 495 posted 10 years ago by dnnsldr
Load jQuery and tell every div to be 100% width
0 1119 posted 10 years ago by cmndo
Another popup jQuery plugin implementation complying with YAGNI.
0 559 posted 10 years ago by p-baleine
If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
0 739 posted 10 years ago by bassdas
This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
0 741 posted 10 years ago by rickygri
obviously one can access HTML5's data attribute super easy in jQuery
0 600 posted 10 years ago by iroybot
Used to automatically give feedback on email address validity.
0 536 posted 10 years ago by boondoklife
Load latest version of jQuery from Google Libraries API and de-register Wordpress version
0 655 posted 10 years ago by i-am-andy
wild scope on genuineBottom...
1 400 posted 10 years ago by tnntwister
Adds a method to the jQuery Validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) to return false if the field equals a specified string
0 1227 posted 10 years ago by StevenW721
This is some code that creates an effect for jQuery Cycle to scroll up when you click the down button and down when you click the up button - like a scrollbar.
0 612 posted 10 years ago by JoshChris
Allows the ability to fill City and State fields in CRM 2011 based on the value of a Zip Code field (and optionally Country). Requires JQuery and JSON Uses Yahoo geocode service Originally written by Bill Caldwell ( http://dynamicscrmdenver...
1 611 posted 10 years ago by evshell18
This is a pretty standard jQuery method to listen for the enter key and simply "click" the button. However, if you are using a LinkButton this code will not work. The reason for this is that a LinkButton is rendered to the browser as an Anchor tag...
0 410 posted 10 years ago by weldonr30
A complete lightbox with minimal code and full functionality: close button, close on escape keypress, close on lightbox blur event.
1 433 posted 10 years ago by mortu
Use this no-conflict wrapper instead of the default ready function in JQuery to initialize scripts in your Drupal 7 theme
0 490 posted 10 years ago by chasecrawford
How to dynamically generate combo box contents depending on the selection made by a user on earlier combo box.
0 436 posted 10 years ago by BlackSheep
Chequea todos los checkbox con un mismo nombre desde uno aparte que tiene como ID "checkeverythink_btn"
0 460 posted 11 years ago by serialk89
None of the html5 skeletons I found had everything I wanted. The only HTML5 element here is the doctype.
1 509 posted 11 years ago by ryantxr
The following code snippet will highlight the row in a table when the checkbox is checked. It will remove the highlight when the checkbox is unchecked. This will work for basic <table> as well as a GridView. The "input:not(#selectAll)" will ignore...
0 651 posted 11 years ago by mattvbiggs
Annoyed by Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890. in admin? Here's the trick. Copy over your default/default/template/customer/tab/addresses.phtml to your default/your-template/template/customer/tab/address.ph...
1 518 posted 11 years ago by cpres
Simply set the id in the content, and use a hash in the anchor to scroll to it.
0 477 posted 11 years ago by thewickedchemist
jQuery shorten content inside container.
0 385 posted 11 years ago by praveensewak
This is just a quick and simple lazy way to do this, didn't feel like using a plug-in for something that is only used on one page...
0 510 posted 11 years ago by thewickedchemist
Extend jQuery :selector types Ex: $("input:text") $("input:email")
1 438 posted 11 years ago by inreflection7
Colorize Portions Of String
0 367 posted 11 years ago by StrawMan
Source: http://css-tricks.com/favicons-next-to-external-links/
0 504 posted 11 years ago by thewickedchemist
IE notification to upgrade your browser
0 550 posted 11 years ago by raz
1 2 3 4 5 6 ... 44