[thelist] Javascript: Passing Text from a Select to a function
phillipmvector at comcast.net
phillipmvector at comcast.net
Fri Nov 14 11:28:45 CST 2003
What I'm trying to do is to pass the selection made on the form to a function.
When the alert comes up, it says "[Object]".
How do I have the selection made on the Listbox pass to the Function?
=====
function CheckClan(Clan)
{
alert(Clan);
}
<select name="Clan" onchange="CheckClan(this);">
<option selected>Please Select</option>
<option>McCloud</option>
</select>
More information about the thelist
mailing list