Is there a JS option to select all rows in a table?

I know this can be done with the ‘Mass Actions’ option, but I’d prefer to do it with a script if possible…

If you only have one Table on your page, this will select all currently-visible items:

skuid.$(‘.nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();

If you want to select rows in a particular Table, then you’ll need to give that Table a Unique Id, e.g. “AccountsTable” (through the Table’s Advanced properties) and then use something like this:

skuid.$(‘#ProductsTable .nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();


Much obliged Zach!

Zach I tried the code to select the rows in a particular table and nothing happend.

I have an in-line snippet with "skuid.$(‘#BundleLineTable .nx-skootable-data > thead > tr > th > input[type=“checkbox”]’).click();

I have given my table the same unique id: BundleLineTable

Can you see where I am messing up?