samedi 23 septembre 2017

How can I get if a checkbox inside a table is checked

I have a checkbox element in a table and cannot figure out how to check if it is checked.

This code row.find("td:eq(6)").children().html() returns the html of the checkbox, however when I try and use row.find("td:eq(6)").children().is(":checked") it always returns false.

I'm not sure if you can return whether the checkbox is checked like this however the .html() function used previously returns the ID with it, so if I could pull this checkbox elements ID seperately then I could use that to find if the checkbox is checked like that? However, I'm not sure how to pull the ID from the html...

Thanks




Aucun commentaire:

Enregistrer un commentaire