Does YUI have selector methods like jQuery?
e.g. get me all div's that are children of that have links in them?
From stackoverflow
ASDFdotASPX
-
Check the YUI Selector Utility, it gives you CSS3 selector sintax, it still in beta but works quite well, check this example: YAHOO.util.Selector.query
From CMS -
YUI 3 (currently in preview release) has explicitly JQuery-like selectors:
Y.all('.foo').set('title', 'Go!').removeClass('off');
Take a look at:
- http://developer.yahoo.com/yui/3/
- http://developer.yahoo.com/yui/3/examples/node/nodelist.html
- http://yuiblog.com/blog/2008/08/13/yui3pr1/
I've gotten good results using YUI 3 Preview Release 1 on OffsetConsumer.org, a website I'm working on; the next YUI 3 preview release is scheduled to come out in November.
From Anirvan
0 comments:
Post a Comment