473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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
1 2986
chaarmann
785 Expert 512MB
javascript is not java!
Please move your post to the javasrcipt forum.
Nov 5 '15 #2

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

Similar topics

2
by: Marcin Jurczuk | last post by:
Hello group. Could someone descripe how to delete many row at one time from MySQL database using SkunkWeb PyDO pacgage ?? Documentation is very short about that ... Assume that Base is class...
2
by: Job Lot | last post by:
My DataGrid is bound to DataView as follow DataGrid1.DataSource = myDS.Tables("Client_Consultant").DefaultView User can either delete all the rows in the DataGrid on by pressing "Delete All"...
6
by: Mark | last post by:
I get an error message when deleting rows from a table in Access database. My understanding is that the error message relates to the sharing of the Inetpub and the wwwroot directory. While I...
1
by: Junkguy | last post by:
I'm having difficulty deleting rows from a datagrid. I want to put a "delete" button on a form and achieve the same functionality as hitting the "delete" key on the keyboard for the selected row of...
8
by: NAdir | last post by:
Hi, thank you for your help. My VB.Net application contains a document that the user can refresh at any time. The refresh works fine and needs to loop through few datatables (hundreds of rows)....
2
by: karthick | last post by:
Hi, I am reiterating through a Datatable and deleting few rows based on the user's selection (with the index ref). I use datatable.rows.Delete() for this purpose. But if I select three rows, it...
3
by: nigelesquire | last post by:
Please help! I'm trying to clone and delete multiple rows with JavaScript. I need two delete buttons that work...! I only have one for now, but it's not working properly, the output count is...
1
by: Philth | last post by:
Hello folks, Hopefully this will be an easy one for most of you guys. I don't delve into PHP much so I'd appreciate some help. The aim of the script below is to display a collection of rows...
1
by: azegurb | last post by:
hi all i have taken from internet a script that adds and removes rows but i made a little changes to that script that is renumbering rows after deleting. but one problem arises. i can delete all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.