I\'m adding select elements dynamically, like in the below HTML. I\'m not sure why the .on(\'change\' ...) is not working for the dynamic select. What am I missing?
Correct syntax:
$('#x').on( 'change', 'select', function () { alert('helo'); } );
So syntax of on() for dynamic element seems:
on()
$(staticParent).on( eventName, target, handler);