How to get the cildselector in $(selector).on(event,childSelector,data,function,map)
Hi.
I have a problem. I append a select with class .ExtDestination . May user add 10 select with this class.
This selects have also unique id. I want to get id of changed select. I use below code but it not works:
$(document).ready(function() {
$('body').on('change' , $('.ExtDestination') , function() {
console.log(<id of changed select>);
});
});
how can i get this id . $(this).attr('id')) do not word because this point to body.