When you code a drop-down selection box like this:
[code]
<!DOCTYPE HTML>
<html>
<head>
<title> Untitled </title>
<script type=”text/javascript”>
function Show(info) {
alert(info.value+’ : ‘+ info.options[info.selectedIndex].text + ‘ : ‘ + info.selectedIndex);
}
</script>
</head>
<body>
<select id=”SBox” onchange=”Show(this)”>
<option value=’0′> Choose One </option>
<option value=’1′> Pick 1 </option>
<option value=’2′> Pick 2 </option>
<option value=’3’> Pick 3 </option>
</select>
</body>
</html>
and you choose the same option a second time (or more), nothing changes (probably as would be expected) in the display.
Is there a way to force the alert to display each time a selection is chosen,
REGARDLESS of if the choice has changed or not?
I have tried changing the ‘onchange=’ to an ‘onclick=’, but that does not work as I would have expected.