Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find how many radio buttons the page has...

Status
Not open for further replies.

Romanichine

Programmer
Apr 9, 2002
30
0
0
CA
Hi,

I got a page that has a lot of radio buttons and can be changed by the web developper without us knowing...
ex:
=========
<input type=&quot;radio&quot; name=&quot;rdoField&quot; value=&quot;234&quot;>
<input type=&quot;radio&quot; name=&quot;rdoField&quot; value=&quot;615&quot;>
<input type=&quot;radio&quot; name=&quot;rdoField&quot; value=&quot;7619&quot;>
[...]
<input type=&quot;radio&quot; name=&quot;rdoField&quot; value=&quot;71762&quot;>
=========

I need a piece of VB/VBScript code that tells me how many radio buttons (called rdoField) the page has. Is there a way to do this?

Thanks,
--
Roman.
 
you can add the contents of the page to a variable with FSO and then use a regular expression to match any instances of <input type=&quot;radio&quot;> _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
[lol]
or submit the form and check it out like baddos
stated _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top