Suppose there are several checkboxes in the div (call it "startwars"). I know how to check and run a function if the state of the checkbox is changed or clicked throughout the page by doing:
$('input[type=checkbox]').click(function() { console.log("somethign is checked on the page") });
but what if I want to limit this area to a div and check if any of the checkbox states that are inside this div is changed or clicked,
I want to call a function if any of the checkboxes is changed / clicked inside a div element using jQuery
source share