Useful Jquery Examples Posted by yottafala on Monday April 19, 2010 @08:27AM from the techflame.posterous.com dept. http://techflame.posterous.com/useful-jquery-examples ( 11 comments | 26 points | on HN )
I agree - not entirely sure how this climbed up so high on the front page. There are far better resources available, including the jQuery documentation itself, or http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4...
eg
I think someone is trying to game the system here.
$('#thing').fadeIn(300).delay(2000).fadeOut(300);
$('#id').replaceWith('<div>I have been replaced</div>');
I prefer
$('#id').replaceWith($('<div/>').text('I have been replaced.'));
if($([selector]).is(":empty")) { // do stuff }
http://www.amazon.com/jQuery-Cookbook-Solutions-Examples-Dev...