Can't see what is wrong with this code. None of this code logs to the console, only with radio type input fields. How to run code on a radio button click is a commonly discussed javascript question on Google, why don't ANY of the approaches recommended work?
$('.myRadio input').on('click', function() {
console.log('hello world');
});
$('input[type=radio]').on('click', function() {
console.log('hello world');
});
$('.myRadio').on('click', function() {
console.log('hello world');
});
$('.myRadio input').click( function() {
console.log('hello world');
});
$('input[type=radio]').click(function() {
console.log('hello world');
});
I am wondering if it has something to do with this disabled tag that forms adds to radio buttons inside of a table. Only thing I can see. It does seem to work with radio buttons outside of a table.