Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

vbs to handle HTML radio buttons

$
0
0

What I need to do is to create radio buttons and set variable BusinessUnit value depend on what user choose. In HTML I use such code:

<table><tr><td><input type=radio name="BU" id="GDS"  language=vbscript onclick=GDSfunc></td><td><Label class="Larger" for=GDS language=vbscript >GDS</Label></td></tr><tr><td><input type=radio name="BU" id="GPS"  language=vbscript onclick=GPSfunc></td><td><Label class="Larger" for=GPS language=vbscript >GPS</Label></td></tr></table>

This looks ok. I also use vbs script to handle these radio buttons

Option Explicit
Dim BusinessUnit

Function GDSfunc
Set BusinessUnit = "GDS"
End Function

Function GPSfunc
Set BusinessUnit = "GPS"
End Function

But when I try to use it there is an error


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>