I’ve just learned that we can iterate through all checkboxes in a document, but I’m unclear on how to do anything with the values or properties of the checkboxes found.
Here’s my code:
function buildrow(){
$("input[type=checkbox][checked]").each(
function() {
alert($this.attr('id');//This doesn't work
}
);
}
How do we do pull a value out and do something with it? Such as pull the value for the ID and set it as a variable?
Thanks
1 Answer