Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Visibility for Labels and Radio Buttons


Message #1 by "sunny" <smonkus@r...> on Mon, 21 Oct 2002 02:26:35
Hi there,

I'm stuck on a problem, hope you guys can give me a hand.
I've some labels and radio buttons on the form, but I want to
set them visible and invisible depending whether the user select
different type of services (radio buttons), how can I achieve this task?

Below are my html in labels and radio buttons : 

      <td colspan="4" class=menuTitle> <div id="DSLLine_OnLabel" 
align="left">Please specify if you 
          require a new line for the DSL service.</div></td>
    </tr>
    <tr> 
      <td height="21">&nbsp;</td>
      <td colspan="2"> <div align="left"> 
          <input type="radio" name="ProvideLine" value="Yes" checked>
          Yes </div></td>
      <td colspan="2"> <p>&nbsp; </p></td>
    </tr>
    <tr> 
      <td height="21">&nbsp;</td>
      <td colspan="2"><input type="radio" name="ProvideLine" value="No">
        No</td>
      <td>&nbsp; </td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td height="21">&nbsp;</td>
      <td colspan="2"> <div align="right"><br>
        </div></td>
      <td colspan="2"> <font size="-2">&nbsp; </font></td>
    </tr>
    <tr> 
      <td height="69">&nbsp;</td>
      <td colspan="4"> <div align="left"> 
          If you said No to the above, please provide the service number 
to be 
          sacrificed for the DSL service. <br>
          If you said Yes to the above, please provide a service number at 
the 
          End-Customer's address to be used for qualification. </div></td>
    </tr>


Cheers
Sunny.

  Return to Index