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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -