Mutple Id Support
allows you to get elements by id like getelementbyid does except it allows you to get mutiple elements with the same id.
syntax:
document.getelementbyids("idname")[2].innerhtml = "hello"
Code:(function(){ document.getElementByIds = function(Id){ var Tags = new Array(); docTags = document.getElementsByTagName('*'); for(i=0;i<docTags.length;i++){ if(docTags[i].getAttribute('id') == Id){ Tags[Tags.length] = docTags[i] } } return Tags }; })();



Reply With Quote


Bookmarks