Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is for a particular search on a project. Just saving here for future use.
0
1142
posted 17 years ago by joeymarchy
If you've ever been frustrated at fixing multiple double margin / duplicate character bugs in your page, using this handy jQuery snippit, you can wipe them away instantly!
This code requires the latest version of jQuery.
3
1984
posted 17 years ago by haxd
Everything works as expected for the setTimeout() function until you try to call a method inside your ‘class’ (there are no real classes in JavaScript). Something like this won’t work:
setTimeout(this.methodToCall, time);
Passing a string r...
0
2346
posted 17 years ago by eden159
Better way to echo a .current_page_item class on a list nav.
3
1611
posted 17 years ago by davebowker
For database inserts must be made some site on "http://redirect_host:port/.../" with nice getip function: http://snipplr.com/view/10946/
0
1501
posted 17 years ago by paramah
Figure 5. Selecting the first-child LI elements that descend from a UL element.
By combining the first-child pseudo-class with the adjacent-sibling selector, it's possible to pick children other than the first one. For example, you might want to a...
0
1381
posted 17 years ago by davebowker
Checks for a valid email address using the php-email-address-validation class.
Source and docs = URL
0
1391
posted 17 years ago by fruehjahr