Re:Useful Jquery Examples
by simonw on Monday April 19, 2010 @08:36AM
(#1276555)
This is just a selective repost of some of the tips from http://www.opensourcehunter.com/2010/02/27/26-cool-and-usefu... - and they're not particularly good tips (using .html() to check if an element is empty seems pretty dodgy, for example).
[ Parent
| on HN ]
> they're not particularly good tips
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...
What's wrong with using the DOM methods and properties as well? Not as sexy? :/
eg
if(element.childNodes.length==0)
Re:Useful Jquery Examples
by pistoriusp on Monday April 19, 2010 @11:28AM
(#1276909)
I've flagged a bunch of posts like this over the last week?
I think someone is trying to game the system here.