Javascript: Process multiple elements with same id or class.

Jan 21 2010 Published by admin under Java Script

I was looking to process multiple <span> elements having same id using javascript. Using same ID for multiple elements sounds illogical but that was the requirement. For this I found only one result http://www.webreference.com/js/tips/000921.html. This explains to do this by using document.all(“id_name”). I am a firefox user and the example failed using the browser. The example is workable only for IE, so I started grabbing few pieces and join them together to achieve this.
Continue Reading »

2 responses so far