Using CSS Wildcard in GetElementById
I might assign each a sequentially IDed DIV like <div id="itm1"> and <div id="itm2"> and so forth. Can I use wildcards both for CSS styling of an unknown number of DIVs and for reading reviewing an unknown number of them using getElementById?
I don't think getElementByTag will work because there are other DIVs I do not want, and GetElementByName won't work because Name is not a valid attribute for a DIV. Or should I assign each of the IDs a class, and use getElementsByClassName? What's the most logical appraoch?
Last edited by ETpro; 04-16-2010 at 04:20 PM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread