"Paul BRYAN" <> wrote in
news:sSYyb.1390$:
Like others say, best is to remove the option, but if you insist, here is
some javascript that will alert the yser (but not prevent).
<html><head>
<script type="text/javascript" language="JavaScript">
function CheckAvail(theForm)
{
var mytext = theForm.selection.value;
if (mytext == 's002') {
alert('potatoes have been sold out');
theForm.thetext.focus();
}
}
</script>
<title>limit chars</title>
</head>
<body>
<form method="post" action="yoururl" id="myForm">
<select name="selection" onChange="CheckAvail(myForm);">
<option value="s001">flowers
<option value="s002">potatoes
<option value="s003">cheese
<option value="s004">beans
</select>
</form>
</body></html>
--
News Updater, No scripts, No Database
http://www.xmlssoftware.com/NUpdater