You can get it using the :selected selector, like this:
$("#my_select").change(function() {
var id = $(this).children(":selected").attr("id");
});
You can get it using the :selected selector, like this:
$("#my_select").change(function() {
var id = $(this).children(":selected").attr("id");
});