How to stop a label firing twice on click #html #jquery #labelI if you find that…

How to stop a label firing twice on click #html #jquery #label
If you find that using jquery on a label click, fires the event listener twice, this is because when a label is clicked – the click event will occur on the label and on the input, therefore triggering the jquery click event twice. Add:
event.preventDefault();
to the jquery click event listener.

jquery – Label fires click function twice – Stack Overflow
ow.ly
function accordionOptions(){ $(“label.legend, label.childless”).click( function(event){ var opposites = $(“.subtype”).not($(this).next()); var el =…