Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



1 ... 36 37 38 39 40 ... 44
I made an absolute tinny code to find the highest z-index of absolute DIV to show my shouting box and to make it appear absolutely at the top of all html elements. I used selector of ”body > *‘ instead of ‘body *‘. ”body > *‘ means...
2 854 posted 14 years ago by adnan
@davidlink aim: instanteggrolls
2 877 posted 14 years ago by conspirator
1 519 posted 14 years ago by kokikr
Stub for creating classes in JQuery
0 618 posted 14 years ago by arpit
1 864 posted 14 years ago by sixmedia
A lovely little one liner that strips out all non alphanumeric chars first, then replaces the spaces with hyphens, then converts all to lowercase :D
0 491 posted 14 years ago by xtheonex
1 429 posted 14 years ago by sixmedia
The markup would look like this: <code> &lt;input class="swap-value" type="text" value="Search"/ &gt;</code>
2 661 posted 14 years ago by keith
Hi, all, this is the "checkFunction" extension for jQuery. This extension takes two parameters: 1. fPointer This parameter is the "possible" function to check 1.1 This parameter can be a String that is a function poi...
1 537 posted 14 years ago by amischol
<a href="javascript:(function(){var%20ids=[];jQuery('*').each(function(){if(this.id&&this.id!==''){if(ids[this.id]){console.log('duplicate%20id%20found:%20'+this.id,this,ids[this.id])}else{ids[this.id]=this}}});})();">Find duplicate IDs</a> (drag me...
1 737 posted 14 years ago by krunkosaurus
Excellent article on using a CSS Template layout system that makes customizing web pages a step easier.
3 682 posted 14 years ago by donjuanito909
0 491 posted 14 years ago by chrisaiv
This is how NetTuts does their filterable Portfolio.
3 688 posted 14 years ago by conspirator
HRs are a pain in the ass to style, so why bother? Wrap them in a DIV with a class of HR instead. (In your stylesheet, set .hr hr { display: none }). This also ports the class of the HR up to the new parent DIV, allowing you to make a few differen...
1 449 posted 14 years ago by dougunderscorenelson
This adds a class to focused form elements (helpful for IE6/7), as well as adds a class to the input's parent (in this case, named "form-field").
1 581 posted 14 years ago by dougunderscorenelson
Quick script to find button elements (and elements with the "button" class) and wrap their innards in spans. Good for making rounded-corner buttons.
0 433 posted 14 years ago by dougunderscorenelson
https://www.chrisjmendez.com/2004/09/27/jquery-converting-all-the-items-in-a-select-element-into-a-string-array/
0 913 posted 14 years ago by chrisaiv
I believe that Accrisoft has a fetch all images from db function built in, but you could always use some php to create the image array
5 755 posted 14 years ago by conspirator
1 396 posted 14 years ago by danielfilho
Remove item (number or string) from array, using jQuery (method grep).
3 12812 posted 14 years ago by gustavopaes
2 609 posted 14 years ago by kokikr
1 700 posted 14 years ago by conspirator
1 636 posted 14 years ago by demixo
Standard list markup, adds button to expand a super dropdown next to the link.
1 794 posted 14 years ago by davebowker
1 ... 36 37 38 39 40 ... 44