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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidden <select> item PART II

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
Thanks Tazzmann..

One more question..
here is my code:

<script language=vbscript>
sub Custom_onclick()
data.site.style.display=&quot;&quot;
end sub

sub Default_onclick()
data.site.style.display=&quot;None&quot;
end sub

</script>


'Data' is the name of my form and 'site' is the name of the pulldown. When I click my radio button, it goes to this fucniton but i get an error &quot;Object Required: 'form'&quot;

Am I not calling my 'site' select the correct way?

MH
 
Here is what I am getting:

<html>
<head>

<script Language=vbscript>
sub Custom_OnClick()
data.site.style.display=&quot;&quot;
end sub

sub Default_OnClick()
data.site.style.display=&quot;None&quot;
end sub
</script>
</head>

<body>

<form ID=Data Action=&quot;SomeAction&quot; method=&quot;Post&quot;>
<input type=&quot;Radio&quot; ID=&quot;Custom&quot;>
<input type=&quot;Radio&quot; ID=&quot;Default&quot; Selected>
<select ID=&quot;site&quot;><option>......</option></select>
</form>

</body>
</html>

This should do what you need it to do.
Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top