Link to home
Start Free TrialLog in
Avatar of wlj_sh
wlj_sh

asked on

how can asp load vbscript variable

<script language="VBScript" type="text/VBScript">
sub changdishes()
Dim dishes,Fdishes,t,ss
t=""
dishes=Array("pop","dd","sport")
Fdishes=Array("italy","vitam","france","german")
if Document.form1.R_Dishes_Type.value=0 then
for i=0 to ubound(dishes,1)
t=t&"<option>"&dishes(i)&"</option>"
next

msgbox(t)
else
t=Fdishes
end if
end sub
</script>

<input type=button onclick="changedishes">
<select name="dishes" >
t  //is here

i want click button  load vbscript,and then get result "t ",i want to put Result "t" to  my select compnent,how can i
ASKER CERTIFIED SOLUTION
Avatar of Macorc
Macorc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wlj_sh
wlj_sh

ASKER

thank you

It's great useful