Reputation: 4730
I'm using the on
event listener to listen for dynamically added select
elements. When an event happens is there a way to get the specific select
element? this
references ul.form
.
$('ul.form').on('change', $("select[id$='end']"), function () {
var selector = // unsure what goes here.
self.modify(this);
});
Upvotes: 0
Views: 159
Reputation: 2930
$('ul.form').on('change', $("select[id$='end']"), function (e) {
var selector = e.target;
self.modify(this);
});
Upvotes: 2