What is the YUI2 alternative selector for jquery selector "*" (or) YUI Event/Selector Issue -
i new yui or yui2
here have criteria, when there 10 image tags in page (""). when click on image need it's parent(i.e) anchor href value. when trying functionality using the following yahoo.util.event.addlistener or yahoo.util.event.on, able fire event on first img tag , able value of it's parent anchor href value, till fine.
here problem is, from second image event not @ firing. how able fire event images.
thanks in advance.
with yui2, need add classes elements , use stuff getelementsbyclassname:
http://developer.yahoo.com/yui/examples/dom/getelementsbyclassname.html
with yui3, use selectors jquery.
Comments
Post a Comment