what I'd like is to be able to create an event listener for all and any check boxes in a document. Because check boxes and radio buttons will be added dynamically with JavaScript, rather then have a separate event listener for each one and just have a general event listener to check for changes in any checkbox with the jquery change function if that's possible of course. I know how to do this with one checkbox.
$('input[name=manybackgrounds]').change(function(){
if($(this).is(':checked'))
{
alert("it is checked");
}
else
{
alert("not checked");
}
});
But since their could be an unpredictable amount of checkboxes, it would be easier to check if any have changes and then just ask which dynamically made ones are checked. Thank you in advance, greatly appreciate any help.