i have a form with lots of checkboxes.
the names and the number of checkboxes are created dynamically.
how can i get a jquery onClick event when i click on any of these checkboxes?
<form id="myform">
<input type="checkbox" name="chk_123">
<input type="checkbox" name="chk_456">
<input type="checkbox" name="chk_23">
<input type="checkbox" name="chk_3">
<input type="checkbox" name="chk_443">
<input type="checkbox" name="chk_6764">
</form>
i wish to select them using the form's id, in this example all checkboxes that belong to form #myform.
i ask this question because i don't wish to just add a class name to every checkbox and select by class name.
my goal: an alert box "you just clicked the checkbox with name chk_{whatever the number is}"