By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

I want to delete a row which is checked but my program is deleting all the rows with

P: 1
I want to delete a row which is checked but my program is deleting all the rows with input type: checkbox. iam using javscript in jsp



Expand|Select|Wrap|Line Numbers
  1. function deleteSelectedRows() {
  2.         $('#dataTable tr').each(function() {
  3.             $(this).find('input[type="checkbox"]:checked').each(function() {
  4.                 $('#delDependNames').attr("value", $('#delDependNames').attr('value') + "," + $(this).val());
  5.                 $(this).closest('tr').remove();
  6.                 displayNamesC();
  7.             });
  8.         });
  9.     }
Oct 30 '15 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 785
javascript is not java!
Please move your post to the javasrcipt forum.
Nov 5 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.