checkboxes and buttons enable

Posted by anshka_3033 3033 on Stack Overflow See other posts from Stack Overflow or by anshka_3033 3033
Published on 2012-11-06T04:41:10Z Indexed on 2012/11/06 5:00 UTC
Read the original article Hit count: 126

Filed under:

i have 2 checkboxes and 2 buttons below the check boxes. on opening the page ,checkbox1 should be enabled and other check box n buttons should be disabled.after clicking on 1st checkbox 2nd checkbox should be enabled and 1 st check box should be disabled and buttons remain disabled.after clicking on 2nd checkbox 2 buttons(approve,Deny) should be enabled and 2 checkboxes should be disabled.so please help me in doing this.i used below code for creating checkboxes and button. i need j script for this

<tr>

<form ACTION="jspCheckBox.jsp">
SC Information Received  <input type="checkbox"  value="SC Information received">   
Validation Begun <input type="checkbox"  value="Validate"  > 
</form>
</tr>
<tr>                        
<td valign="middle" align="left" style="padding-left:10px;" nowrap>
<button type="button" class="btn" name="btnApprove" onclick="approve();">Approve</button>
</td>
<td>
<button type="button" class="btn" name="btnDeny" onclick="deny();">Deny</button>
</td>
</tr>

© Stack Overflow or respective owner

Related posts about tr