Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Checkbox AGAIN


Message #1 by "chetanp" <chetanpp@h...> on Tue, 27 Nov 2001 16:52:24
Thanks to those who helped earlier



What i forget to say was that if the first box is checked then the second 

box is enabled and 

if the person unchecked to the first box(after checking if once and then 

changeg their mind) the second box goes disabled....



i have this code so far...what this code and javascript does is...if i 

check the first box the second is ENABLED and then if i uncheck the first 

box the second box is still ENABLED...how can i make it so that if the 

first box is UNCHECK the second box is disabled

<form>

<table>

 <tr>

  <td><input type="checkbox" name="rm" value="true" onclick="ChangeBox

(this.form);"></td>

  <td>...</td>

  <td>...</td>

  <td>input type="checkbox" name="ss" DISABLED></td>

 </tr>

</table>

</form>

 

<script language="javascript">

function ChangeBox(curForm) {

	if (curForm.rm2modem.checked) { curForm.ss2modem.disabled = false;}

}

</script>



Much thanks :)

  Return to Index