bjblackmore
12-08-2008, 12:30 PM
Hi,
I have a dropdown box with a few options that can be selected. Is it possible to have a popup message when just a specific option is selected?
I.e. in the select list below, people can select low or medium without getting a warning, but if they select High, a popup warning appears?
<script>
function popup () {
alert(\'Only select high prority if this is currently stopping you from working\');
}
</script>
<select name="level">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high" onClick="popup()">High</option>
</select>
Many thanks
Ben
I have a dropdown box with a few options that can be selected. Is it possible to have a popup message when just a specific option is selected?
I.e. in the select list below, people can select low or medium without getting a warning, but if they select High, a popup warning appears?
<script>
function popup () {
alert(\'Only select high prority if this is currently stopping you from working\');
}
</script>
<select name="level">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high" onClick="popup()">High</option>
</select>
Many thanks
Ben