onChange() is working very well, when an option is choosen the first
time. how can i detect when the user clicks and choose the same option
again?
this code works with IE 6.x. you can click the same option again and
again and the onChange()-event comes up.
firefox will react on the onmousedown but the onChange is not executed.
is there a way to detect selecting the same option again and again?
<html>
<head>
<script>
function selChange (feld) {
alert (feld.options[feld.selectedIndex].value);
}
</script>
</head>
<body>
<FORM>
<SELECT onmousedown="this.selectedIndex=-1; this.focus(); return
true;" onchange="selChange(this); return false;">
<OPTION VALUE="nop">Choose
<OPTION VALUE="1">one
<OPTION VALUE="2">two
<OPTION VALUE="3" selected>three
<OPTION VALUE="4">four
</SELECT>
</FORM>
</body>
</html>