Profile
Achievement
lamebollock's Recent SnippetsTagged jquery
- All /
« Prev 1 Next »
Cache control when pulling in scripts, redefined "getScript" function
0
938
posted 13 years ago by lamebollock
$('li.current_sub').prevAll("li.par_cat:first");
Tested it with your markup:
$('li.current_sub').prevAll("li.par_cat:first").text("woohoo");
will fill up the closest previous li.par_cat with "woohoo".
1
875
posted 13 years ago by lamebollock
Description: If this method is called, the default action of the event will not be triggered.
For example, clicked anchors will not take the browser to a new URL. We can use event.isDefaultPrevented() to determine if this method has been called by...
1
878
posted 14 years ago by lamebollock