126
rated 0 times
[
130]
[
4]
/ answers: 1 / hits: 14662
/ 11 Years ago, thu, february 20, 2014, 12:00:00
I have a select element which is decorated by Select2 via the SonataAdminBundle.
I am trying to listen to the change event. The ID of my select tag is categorySelector.
This does not work:
var test = $('#categorySelector');
$(test).change(function() {
var theSelection = $(test).select2(val);
//$('#selectedID').text(theID);
console.log(theSelection);
});
How do I do this?
More From » jquery-select2