Xeel
May 12th, 2009, 02:15 PM
Hello everyone
Just for example, instead of using MS's mynode.all to get a collection of all the elements inside some node we use mynode.getElementsByTagName("*").
I am wondering: is there a simple and short way to get desired element by its name using name pattern (something like getElementsByName("myName*") for ex.)?
Thanks in advance =)
P.S. Please, don't offer iterations through the elements with name comparison... :p
Just for example, instead of using MS's mynode.all to get a collection of all the elements inside some node we use mynode.getElementsByTagName("*").
I am wondering: is there a simple and short way to get desired element by its name using name pattern (something like getElementsByName("myName*") for ex.)?
Thanks in advance =)
P.S. Please, don't offer iterations through the elements with name comparison... :p