Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 ... 22 23 24 25 26 ... 30
Just replace classic document.ready with pageLoad function as belows: pageLoad function will called on all postback and partial postbacks. So it makes the jquery code no matter what :D Even in update panel.
1 626 posted 14 years ago by delikassap
1 648 posted 14 years ago by delikassap
This plugin will, by default, truncate a block of text down to one line at its current width (if the text block exceeds 1 line). You can also pass in a pixel value and it will truncate it to that width.
0 923 posted 14 years ago by adamcoulombe
Con esto evitamos que un enlace que tengamos con 'href="#"' actue como tal y la pagina haga scroll hasta la parte superior.
0 460 posted 14 years ago by jacinmontava
I was recently faced with the problem of setting focus to the next input field. The challenge was that I didn’t know what that field was. So given an input field, find the next logical (in the order of the DOM) input field and set focus. I came up...
1 969 posted 14 years ago by Meander365
I can't help thinking that good use of jQuery & Javascript must use extensive comments
0 825 posted 14 years ago by PandaWood
adapted from http://jquery14.com/day-05
10 1107 posted 14 years ago by cfleschhut
add a value to your text input e.g. "Enter keywords" and clear on-click
0 639 posted 14 years ago by flicity
This is an improvement on http://snipplr.com/view/11583/retrieve-url-params-with-jquery/ I found IE wasn't liking the results[1] when no param was set. This fixes that issue.
6 2935 posted 14 years ago by geekyjohn
3 694 posted 14 years ago by davebowker
Handy little snippet i found in 'jquery enlightenment' for caching certain selected files. Could be useful for larger files later on in a site.
1 1018 posted 14 years ago by 1man
Simple plugin to demonstrate how the 'this' keyword is used. Plugin also allows chaining via the 'return'
0 868 posted 14 years ago by 1man
Since :first-child and :last-child aren't compatible with all modern browsers I thought I'd post this snippet. It make automating the class creation easier too instead of having to remember when typing up your HTML or creating logic in your programm...
3 805 posted 14 years ago by smoothdzion
Example in 'jQuery enlightenment' Simple way to jump smoothly down the page without the use of a plugin.
3 801 posted 14 years ago by 1man
Example given in the book jQuery Enlightenment. Create your own custom selectors in jQuery and manipulate as usual.
0 739 posted 14 years ago by 1man
Basic skeleton for a plugin. Contains an example to show where code needs to go.
2 530 posted 14 years ago by ira
bit shabby and should really never do this but hey! Takes an id selector of a ul and expects the ul to be ul>li>a which gets converted into an option list which changes the destination url of the anchor button beneath on select change. bah.
0 1054 posted 14 years ago by ReeceMarsland
Great short snippet of code to toggle checkboxes. Thanks [Josh Nathanson](http://groups.google.com/groups/profile?enc_user=aAOlJRcAAAC7dB8ku2NsRGdjbPtXhPEXHqZiDvCVswhrZ6TQxKj0ww) for putting this simple code together.
6 699 posted 14 years ago by smoothdzion
0 706 posted 14 years ago by wilburhimself
the plugin model in JQuery takes advantage of JavaScript’s prototype inheritance and makes it trivially easy to add new chainable methods
1 660 posted 14 years ago by magicrebirth
Here is a nice snippet to open links in pop-up windows. Just add the popup css class to your link to make it work.
3 732 posted 14 years ago by math89
The target="blank" attribute is not valid XHTML 1.0 Strict. using jQuery, you can achieve the same functionality without having validation problems.
0 573 posted 14 years ago by math89
0 689 posted 14 years ago by coryschadt
1 ... 22 23 24 25 26 ... 30