sanjuT
09-04-2003, 10:24 AM
Hi all!
I want to have a reset button reset 4 dropdowns that i have..i have this script, but not sure if i could modify it to work:
(these are not PHP code, it's just labelled that way for the formatting)
<!--
function reset()
{
document.filtermenus[0].elements[0].select();
}
//-->
the dropdowns are pop. from a database, hre's an example of one dropdown:
<select name="developer" onchange = "PostForm();">
<%
response.Write ("<option value ='''>No Filter </option>")
if rsDeveloper.eof = false then
rsDeveloper.movefirst
while not rsDeveloper.eof
if len(developer)>0 then
if rsDeveloper("UserName") = (developer) then
selected = "Selected"
else
selected = ""
end if
end if
response.Write ("<option " & selected & " value ='" & rsDeveloper("UserName") & "'>" & rsDeveloper("UserName") & "</option>")
rsDeveloper.MoveNext
wend
end if
%>
</select>
Is it possible to reset these types of dropdowns?
THANKS!!!
I want to have a reset button reset 4 dropdowns that i have..i have this script, but not sure if i could modify it to work:
(these are not PHP code, it's just labelled that way for the formatting)
<!--
function reset()
{
document.filtermenus[0].elements[0].select();
}
//-->
the dropdowns are pop. from a database, hre's an example of one dropdown:
<select name="developer" onchange = "PostForm();">
<%
response.Write ("<option value ='''>No Filter </option>")
if rsDeveloper.eof = false then
rsDeveloper.movefirst
while not rsDeveloper.eof
if len(developer)>0 then
if rsDeveloper("UserName") = (developer) then
selected = "Selected"
else
selected = ""
end if
end if
response.Write ("<option " & selected & " value ='" & rsDeveloper("UserName") & "'>" & rsDeveloper("UserName") & "</option>")
rsDeveloper.MoveNext
wend
end if
%>
</select>
Is it possible to reset these types of dropdowns?
THANKS!!!