true, ok how bout this.... simple script, won't work.
i'm just trying to get an alert when the second item is selected
- <script language="javascript1.2">
-
-
function change()
-
-
if (document.form1.namesLst.options[1].selected)
-
{
-
alert("The first option is selected");
-
}
-
-
-
</script>
and the html
[HTML] <form name="form1">
<select name="namesLst" onChange="change()">
<option value="item1">Kyle</option>
<option value="item2">George</option>
<option value="item3">Ali</option>
</select>
</form>
[/HTML]
should an alert not be triggered when i choose "Kyle"?