There is a global listener on specific input type:
$('input[type["radio"]').on('change', function() { ... });
But I have another more specific radio
input with its own unique_radio
class:
<input type="radio" class="unique_radio" name="unique_radio">
It also has its own click listener:
$('.unique_radio').on('click', function() { ... });
When I click it, both listeners trigger the functions, but I need only the function with the unique_radio listener to be triggered.
I have tried using stopImmediatePropagation
and off
as seen here:
Best way to remove an event handler in jQuery?
But that did not seem to work