This week's DZone RefCard is one that Yehuda and I put together describing the jQuery Selectors.
For anyone using jQuery, or even contemplating using it, this "RefCard" is a handy reference to keep at your desk (virtual or otherwise) to look up the syntax of the jQuery selectors and the methods that manage the jQuery wrapped set.
TrackBacks[0]
Comments[2]
Posted by bear on June 9, 2008 12:10:02 PM CDT
Reply |
Permalink
Re: New DZone "RefCard": jQuery Selectors
I quickly read the refcardz and found two problems with it.
On page 2.
This selector matches all <p> elements that are preceded by any <div> sibling.
On page 3:
This is not a very good example as <p> elements should not contain block-level elements, see the W3 reference.
Comment from Caroline Schnapp on July 8, 2008 2:45:41 PM CDT
And a third error:
On page 3.
$(‘p:contains(coffee)’) selects allThis should be...elements that contain the text coffee
$("p:contains('coffee')")
See the jquery API reference on this.
Comment from Caroline Schnapp on July 8, 2008 2:53:04 PM CDT
TrackBack to http://radio.javaranch.com/bear/addTrackBack.action?entry=1213031402070