-
checkBox selection
Hello Techies,
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 %>')"
/>
<INPUT
type="button"
name="addCondBtn"
value="Add"
onClick="return sendAddConditionRequest();"
/>
-------
-----------
<INPUT type="checkbox"
name="<%=RuleSessionManager.RuleParameters.DELETE_CONDITION%>"
value="<%=condition.getId()%>" id = 'myOptions'>
I had written code for checkBoxValidation. The function is
function checkBoxValidation(reqType)
{
alert("inside");
if(document.ruleForm.<%=RuleSessionManager.RuleParameters.DELETE_CONDITION%>.checked == false)
{
alert("plz check the condition ");
return false;
}
else
{
alert("inside else()");
doSubmit(reqType);
}
}
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??
Thankx
Krish
Similar Threads
-
By Brian in forum ASP.NET
Replies: 2
Last Post: 07-16-2008, 02:43 PM
-
Replies: 5
Last Post: 05-27-2008, 11:17 AM
-
By viviensiu in forum ASP.NET
Replies: 5
Last Post: 05-18-2007, 03:25 AM
-
Replies: 1
Last Post: 10-01-2001, 01:06 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks