Hello all,
If there are many check objects shown on page and they belong to the same form with a 'delete' button listed below. My goal:
1. delete those checkbox objects that are checked from the
page when click on 'delete' button.
2. get the name of thoes checked checkbox objects at server
side and delete the corresponding records from database.
How can I get those checked checkbox objects' value at the sever side?
for example:
<form name="myForm" method= "post" action=" submitForm()" >
<TR bgColor=#eeeeee>
<TD noWrap align=left><INPUT type="checkbox" name="<%= inputSkillName %>" value=http://www.webdeveloper.com/forum/archive/index.php/"<%= inputSkillName %>"><%= inputSkillName %></TD>
<TD noWrap align=left>
<INPUT type="radio" name="<%= newSkillRadio %>" value="5"> 5
<INPUT type="radio" name="<%= newSkillRadio %>" value="4"> 4
<INPUT type="radio" name="<%= newSkillRadio %>" value="3"> 3
<INPUT type="radio" name="<%= newSkillRadio %>" value="2"> 2
<INPUT type="radio" name="<%= newSkillRadio %>" value="1"> 1
<INPUT type="radio" name="<%= newSkillRadio %>" value="0" checked> 0
</TD>
</TR>
<TR>
.....
</TR>
</from>
<a><INPUT type="submit" name="delBtn"
value="Delete">delete</a>
...
each TR element includes one checkbox
object, when click on the delete button,I want to delete those checked TR element from page
Any help is thankful!
Lily
If there are many check objects shown on page and they belong to the same form with a 'delete' button listed below. My goal:
1. delete those checkbox objects that are checked from the
page when click on 'delete' button.
2. get the name of thoes checked checkbox objects at server
side and delete the corresponding records from database.
How can I get those checked checkbox objects' value at the sever side?
for example:
<form name="myForm" method= "post" action=" submitForm()" >
<TR bgColor=#eeeeee>
<TD noWrap align=left><INPUT type="checkbox" name="<%= inputSkillName %>" value=http://www.webdeveloper.com/forum/archive/index.php/"<%= inputSkillName %>"><%= inputSkillName %></TD>
<TD noWrap align=left>
<INPUT type="radio" name="<%= newSkillRadio %>" value="5"> 5
<INPUT type="radio" name="<%= newSkillRadio %>" value="4"> 4
<INPUT type="radio" name="<%= newSkillRadio %>" value="3"> 3
<INPUT type="radio" name="<%= newSkillRadio %>" value="2"> 2
<INPUT type="radio" name="<%= newSkillRadio %>" value="1"> 1
<INPUT type="radio" name="<%= newSkillRadio %>" value="0" checked> 0
</TD>
</TR>
<TR>
.....
</TR>
</from>
<a><INPUT type="submit" name="delBtn"
value="Delete">delete</a>
...
each TR element includes one checkbox
object, when click on the delete button,I want to delete those checked TR element from page
Any help is thankful!
Lily