I have some dropdown lists appended by jquery after a ajax request to the page. All of them has class counter
. Now I want to set a change function for them but its not working at all. My jquery version is 1.9.1. I tried these:
$(".counter").on("change",function () {
alert("ok");
});
And
$(".counter").change(function () {
alert("ok");
});