Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

Update row/cell not currently visible

$
0
0

Hi, I'm trying to update a cell in a DataTable that's on a different "page", using version 1.10. Since it's not visible to the DOM I can't manipulate it with jQuery selectors.

The table is initialized on existing HTML markup, where the rows look like this:

<tr data-id="1">
    <td><label><input type="checkbox" name="part[]" value="1"></label></td>
    <td>(Description)</td>
    <td>(Price)</td>
    <td>(Quantity)</td>
</tr>

More specifically, I'd like to un-check the checkbox, targeting the table row by the data-id attribute I added.

From reading documentation it looks like the .data() api can help with this, but how do I select by my data-id attribute and then change the HTML of that first table cell?

Thanks for your time.


Viewing all articles
Browse latest Browse all 35272

Trending Articles