I am having a form . In this form i am having one add button and one Delete button will come .
when i click on add button 3 combo boxes and one checke box will come.
When i click on delete button what ever the check boxes i had selected they have to be deleted.
I am doing all these stuff in jsp. Here is my code
<INPUT type="button" name="deleteCondBtn" value="Delete"
onClick="checkBoxValidation('<%= RuleSessionManager.RuleRequest.DELETE_CONDITIONS %>')"
value="<%=condition.getId()%>" id = 'myOptions'>
I had written code for checkBoxValidation. The function is
if(document.ruleForm.<%=RuleSessionManager.RuleParameters.DELETE_CONDITION%>.checked == false)
alert("plz check the condition ");
This function is working fine for one check box.
When i click on add button one more check box will along with 3 comboboxes.
Now when i click on delete button() I am not going into if condition and getting 500 error.
How can i get plz check the check box??
Can anyone tell me how to do this??