Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Form - dropdown validation in Netscape


Message #1 by "Jeff McFarland" <jeff@s...> on Fri, 12 Apr 2002 21:06:22
Hi Everyone,

Looking for some help.  I can not seem to get my formutils to totally work 
in Netscape.  It works in IE...of course.  Does anyone have a piece of 
code that will check to see if a drop down box selection has been used in 
a form?  And does it work in Netscape?

Here is my IE code:

**************************
Form Utils
**************************
function checknotemptydd(fld1,nam)
{
	if (isempty(fld1))
	{
		alert(nam + " must be selected");
		return false;
	}
	return true;
}
***************************


***************************
ASP Page
***************************
<form action="nextpage.asp" method=post name=frmAdmission onsubmit="return 
((jsenabled.value='T') && (
	checknotemptydd(Gender, 'A Gender')				
		
));">
<input type=hidden name=jsenabled value=F>
***************************

Thanks,

J

  Return to Index