Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1026673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:07:09+00:00 2026-05-16T12:07:09+00:00

have a table that dynamically generates text boxes in run time. I want to

  • 0

have a table that dynamically generates text boxes in run time.
I want to delete the row that got checked. The table is connected with DB.

And, the check box ID’s were appended by the TABLE DATA’s ID.
If, check any box, and click delete means, It have to get deleted. I have the back end codes.

I just want to get the ID value of any check box thats get selected, because it holds the row ID along with its own ID.

The dynamically generated Check box code looks like this.

x+= "<td>" + "<input id='cid"+id + "'type=checkbox />"

Any suggestions would be appreciative.
I am using JavaScript here. Jquery notations also useful for me.
Thanks

Any conceptual idea about selecting more that 1 row and deleting will be more appreciative.

Again Thanks.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:07:09+00:00Added an answer on May 16, 2026 at 12:07 pm

    EDIT: I re-read your question… again. I think I had it wrong before. Sounds like the delete button is outside the table, and when you click it, you want to delete the rows where the checkbox is checked.

    Does that sound like what you want?

    $('#deleteButton').click(function() {
          var $checked = $('#theTable :checkbox[id^=cid]:checked');
          $checked.closest('tr').each(function( i ) {
              var theID = $checked.eq( i ).attr('id'); // get the ID
              $(this).remove();
          });
    });
    
    • .closest() will get the nearest ancestor <tr>
    • .each() iterate over the <tr> elements
    • .remove() will remove the row.

    You didn’t provide any HTML, so I’m not sure exactly how the selector should look.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SSRS matrix table, which generates column dynamically. but i want to
I have a standard HTML formatted table, that dynamically generates the content, via Zend
I have a table of data that I need to dynamically add a column
I have table that contain date and time field. id|date|time ========= 1|01/01/2001|10:45 2|01/02/2002|11:45 3|01/03/2003|12:45
I have a table that is generated dynamically. And a click event on a
I have a table of data that is generated dynamically based on the contents
I have a html table generated dynamically here is the structure row 1 headings
I have a table in my application (generated dynamically) that has 3 columns. The
I have a part of webpage that is dynamically generated using MySQL queries: <table
Well, i have a table that is generated dynamically and i don't have access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.