How to find selected row's ids in DataTable

How to find selected row's ids in DataTable

elenoraelenora Posts: 23Questions: 10Answers: 0

Hi. I'm using DataTable plugin for my asp.net core 3.1 project. My DataTable has checkboxes and I want to know how I can find the checked rows IDs. Any help will be appreciate. Right now by $("input[type=checkbox]:checked", oTable.fnGetNodes()).each(function () {...} I could find the checked data but my data in oTable doesn't contain id in the table

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    This sounds the same as your other thread - did you see my answer there.

    If that didn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.