Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validating List Menus

Status
Not open for further replies.

llldnylll

Technical User
May 21, 2003
89
I know we can validate fields, is there a way to validate List Menus?
 
DW's built in validation doesnt do this, a custom script is required
Code:
<script language="javascript">
function chkField(){
if (document.forms.form1.myselect.value==""){
alert("You must make a selection");
return false
}
}
</script>
Then your form will need to call this onSubmit
Code:
<form name="form1" method="post" action="" onSubmit="return chkField()">

[Peace][Pipe]
 
DW should have an Insert-->[peace][pipe] Cheech button
2nd best GB thing after The Beatles

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top