I have a function set up to fire when certain table rows are clicked, but here is the general idea:
<p onclick="alert('Hello World!');">xxxxxxxxx<input type="checkbox"></p>
How do I make it so that function does not fire when a checkbox is clicked?
In any case, you must create a click handler for the checkbox.
If you’re using jQuery, you only have to call
event.stopPropagation()in it.Otherwise, check this post http://www.quirksmode.org/js/events_order.html#link9 for a code example (and complete explanation on how bubbling/capturing works).