Listbox validation not working in Netsacpe Navigator

Results 1 to 2 of 2

Thread: Listbox validation not working in Netsacpe Navigator

  1. #1
    KRISH,denver Guest

    Default Listbox validation not working in Netsacpe Navigator

    I want to perform listbox validation which was not working in netscape navigator but was found succesfully working in Internet explorer.can u please check this code and provide me a solution <BR><BR>****************************************** ***********************<BR>&#060;html><BR>&#060;he ad><BR>&#060;title>Business Markets Resale Provisioning&#060;/title><BR>&#060;/head><BR><BR><BR>&#060;form name="theForm" action="justtocheck.htm" method="post" onsubmit="return BValidateData(theForm)"><BR><BR>&#060;table cols="3" cellpadding="3"><BR> &#060;td>LEC:&#060;/td><BR> &#060;td> &#060;select Name="optLECID">&#060;option value ="">&#060;OPTION Value="3">Amertiech Il&#060;/OPTION>&#060;OPTION Value="4">Bell Atlantic North&#060;/OPTION>&#060;OPTION Value="1">Pacific BEll&#060;/OPTION>&#060;/select> &#060;/td><BR>&#060;/tr><BR>&#060;/table><BR>&#060;Script Language="Javascript"><BR>function BValidateData(theForm)<BR>{<BR> if(theForm.optLECID.value == "")<BR> { <BR> alert("Hi select something man");<BR> theForm.optLECID.focus();<BR> return(false);<BR> } <BR> }<BR>&#060;/script><BR><BR><BR><BR>&#060;table><BR>&#060;tr align="center"><BR>&#060;td colspan="2"><BR>&#060;input type="submit" value="Update" name="Submit"><BR>&#060;input type="Reset"><BR>&#060;/tr><BR>&#060;/table><BR>&#060;/Form><BR>&#060;/html><BR>***************************************** **************************

  2. #2
    Join Date
    Dec 1969
    Posts
    119

    Default RE: Listbox validation not working in Netsacpe Navigator

    Hi Krish,<BR><BR>The following code is working on both IE and Netscape.<BR><BR>=================<BR><BR><BR><BR> <BR>&#060;html><BR>&#060;head><BR>&#060;title>Busi ness Markets Resale Provisioning&#060;/title><BR>&#060;/head><BR><BR>&#060;form name="theForm" action="justtocheck.htm" method="post" onsubmit="return BValidateData(theForm)"><BR><BR>&#060;table cols="3" cellpadding="3"><BR> &#060;td>LEC:&#060;/td><BR> &#060;td> <BR> &#060;select Name="optLECID"><BR> &#060;option value =""><BR> &#060;OPTION Value="3">Amertiech Il&#060;/OPTION><BR> &#060;OPTION Value="4">Bell Atlantic North&#060;/OPTION><BR> &#060;OPTION Value="1">PacificBEll&#060;/OPTION><BR> &#060;/select> &#060;/td><BR> &#060;/tr><BR>&#060;/table><BR><BR>&#060;Script Language="Javascript"><BR> function BValidateData(theForm){<BR> alert(&#039Here1&#039)<BR> if(theForm.optLECID.options[theForm.optLECID.selectedIndex].value == ""){ <BR> alert("Hi select something man");<BR> theForm.optLECID.focus();<BR> return(false);<BR> } <BR> }<BR>&#060;/script><BR><BR><BR>&#060;table><BR>&#060;tr align="center"><BR>&#060;td colspan="2"><BR>&#060;input type="submit" value="Update" name="Submit"><BR>&#060;input type="Reset"><BR>&#060;/tr><BR>&#060;/table><BR>&#060;/Form><BR>&#060;/html><BR><BR>==============<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •