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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validating dropdown boxes for Netscape 4.76. COuld anybody help

Status
Not open for further replies.

philrm

MIS
Jun 1, 1999
58
AU
Hi all,

I need somebody to help me out with this javascript below, which work well in IE but not in Netscape for dropdown validation. Can anyone give me a soultion for this problem.

function checkforblanks()
{
for (var i = 0; i < arguments.length; i += 2)

{
if (!arguments)
{alert(&quot;Please enter &quot; + arguments[i+1] + &quot;.&quot;);return false;}
}

return true;
}

function validate()
{
// Make sure none of the required fields are empty
var isFull = checkforblanks(document.study.proj_code.value,
&quot;Project Code&quot;);
if (!isFull)
{return false;}
}

Thank's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top