Re: GetElements of TD

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




is there way to give xpath condition like this

getElementsByTagName("*"[@tagName='input'])



"Daniel Kirsch" <Iwillnotread_daniel@xxxxxx> wrote in message
news:dthclv$rkm$01$1@xxxxxxxxxxxxxxxxxxxx
Praveen wrote:
getElementsByTagName("*") wont solve my issue.
I need only form elements (input,select,textarea,.....)
getElementsByTagName("*") is giving all tags(table,td,tr,</input>,...)

any way to get only form elements?

No direct.
Use the suggested script and check for the nodeName or tagName property
which should be "input", "button", "select", "option", "optgroup", "form"
or "textarea".

Daniel


.


Quantcast