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 8361761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:46:21+00:00 2026-06-09T11:46:21+00:00

In this table I have 1 checkbox per row. How to return the list

  • 0

In this table I have 1 checkbox per row. How to return the list of Categorynames from all the rows that are checked by the checkbox?

html:

<tbody>
    <table>
        <tr style="height: auto" role="row" class="jqgfirstrow">
            <td style="height: 0px; width: 55px;" role="gridcell">
            </td>
            <td style="height: 0px; width: 150px;" role="gridcell">
            </td>
            <td style="height: 0px; width: 150px;" role="gridcell">
            </td>
        </tr>
        <tr class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1" id="1">
            <td aria-describedby="jqgCategories_act" title="" style="text-align: center;" role="gridcell">
                <input type="checkbox" value="true" name="Catchecked" id="Catchecked"><input type="hidden"
                    value="false" name="Catchecked">
            </td>
            <td aria-describedby="jqgCategories_Name" title="Beverages" style="text-align: left;"
                role="gridcell">
                Beverages
            </td>
            <td aria-describedby="jqgCategories_Description" title="Soft drinks, coffees, teas, beers, and ales"
                style="text-align: left;" role="gridcell">
                Soft drinks, coffees, teas, beers, and ales
            </td>
        </tr>
        <tr class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1" id="2">
            <td aria-describedby="jqgCategories_act" title="" style="text-align: center;" role="gridcell">
                <input type="checkbox" value="true" name="Catchecked" id="Catchecked"><input type="hidden"
                    value="false" name="Catchecked">
            </td>
            <td aria-describedby="jqgCategories_Name" title="Condiments" style="text-align: left;"
                role="gridcell">
                Condiments
            </td>
            <td aria-describedby="jqgCategories_Description" title="Sweet and savory sauces, relishes, spreads, and seasonings"
                style="text-align: left;" role="gridcell">
                Sweet and savory sauces, relishes, spreads, and seasonings
            </td>
        </tr>
        <tr class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1" id="7">
            <td aria-describedby="jqgCategories_act" title="" style="text-align: center;" role="gridcell">
                <input type="checkbox" value="true" name="Catchecked" id="Catchecked"><input type="hidden"
                    value="false" name="Catchecked">
            </td>
            <td aria-describedby="jqgCategories_Name" title="Produce" style="text-align: left;"
                role="gridcell">
                Produce
            </td>
            <td aria-describedby="jqgCategories_Description" title="Dried fruit and bean curd"
                style="text-align: left;" role="gridcell">
                Dried fruit and bean curd
            </td>
        </tr>
        <tr class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1" id="8">
            <td aria-describedby="jqgCategories_act" title="" style="text-align: center;" role="gridcell">
                <input type="checkbox" value="true" name="Catchecked" id="Catchecked"><input type="hidden"
                    value="false" name="Catchecked">
            </td>
            <td aria-describedby="jqgCategories_Name" title="Seafood" style="text-align: left;"
                role="gridcell">
                Seafood
            </td>
            <td aria-describedby="jqgCategories_Description" title="Seaweed and fish" style="text-align: left;"
                role="gridcell">
                Seaweed and fish
            </td>
        </tr>
    </table>
</tbody>
  • 1 1 Answer
  • 0 Views
  • 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-06-09T11:46:22+00:00Added an answer on June 9, 2026 at 11:46 am

    Put this in some function whenever you need to collect the categories from the table :

    var table = ...; // get the table DOMElement or jQuery object here
    var categories = [];
    $(':checkbox[checked]', table).each(function() {
        categories.push($(this).parent().next().text().trim());
    });
    //alert(categories);   // return an array of categories
    

    Here’s the jsFiddle.

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

Sidebar

Related Questions

I have a table of data and have one checkbox per row for the
I have a table that looks somethings like this: <table> <tr class=row even> <td><input
I have this table, from which i'd like to select all the td elements
I have a table of data in rows with a check box per row,
I have a table like this, and i have a checkbox at each row
I have a simple HTML table display of data that results from an MySQL
I have a table that displays from db all infrastructures (their name, description, performance).
I have a table with misc. data. Each row has a checkbox. This table
I have a table where each rows has a check box. This code works
I have table with 300 000 records (MyISAM). I get record from this table

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.