Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged js
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
obviously one can access HTML5's data attribute super easy in jQuery
0
743
posted 11 years ago by iroybot
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0
637
posted 11 years ago by Narayon
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0
570
posted 12 years ago by telltec
When injecting via jQuery HTML content which contains script tags referencing external scripts, which are then referenced via scripting elsewhere in the injected HTML, some browsers (Chrome) will not wait for the external scripts to load causing the...
2
894
posted 13 years ago by harikaram
Alternative for "return false;"
stopPropagation(); prevents for bubbling up the dom
preventDefault(); prevents the browser from performing the default action
1
693
posted 13 years ago by dkl3in
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0
413
posted 13 years ago by prsjohnny
jQuery
jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist
0
811
posted 13 years ago by brandonjp
jQuery
js javascript browser language detection, get the user\'s browser\'s language preference setting using jquery to detect users br
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1
1183
posted 13 years ago by brandonjp
jQuery
js - jQuery - jQueryLoader - check if $ is undefined, then load jquery with pure javascript if needed
0
828
posted 13 years ago by brandonjp
$('#myTable').find('.firstColumn').makeRed().append('hello');Â Â
1
505
posted 14 years ago by dvdrtrgn
« Prev 1 Next »