Javascript . 这是否会触发将值更改为当前悬停状态? <select id="mySelect"> <option value="1">One</option> <option value="2">Two

Javascript . 这是否会触发将值更改为当前悬停状态? <select id="mySelect"> <option value="1">One</option> <option value="2">Two,javascript,jquery,events,html-select,eventtrigger,Javascript,Jquery,Events,Html Select,Eventtrigger,. 这是否会触发将值更改为当前悬停状态? <select id="mySelect"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> $('#mySelect').change( function() {

. 这是否会触发将值更改为当前悬停状态?
<select id="mySelect">
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
</select>
$('#mySelect').change( function() {
    // do stuff
} );
function loadCourseFilter() {
    var selected = '';
    var sel = $('<select>').attr('id','padmCourseFilter');
    $(padm_courses).each(function() {
        sel.append($("<option>").attr('value',this.code).text(this.name));
    });
    if($('#padmCourseFilter').length) {
        selected = $('#padmCourseFilter').val();
        $('#padmCourseFilter').replaceWith(sel);
        if(selected != '') $('#padmCourseFilter option[value="'+escape(selected)+'"]').prop('selected', true);
    } else {
        sel.appendTo('#padm_hub_filters');
    }

    $('#padmCourseFilter').change( function() {
        processMCRsByCourse($('#padmCourseFilter').val());
        var tables = $('.sv-datatable').DataTable();
        tables.rows('.duplicate').remove().draw();
        filterTheBlockFilter();
    } );
}
$(document).on('change', '#mySelect', function() {
    // do stuff
});
function loadCourseFilter() {
    var sel, output;
    if($('#padmCourseFilter').length) {
        var count = 0;
        sel = $('padmCourseFilter');
        output = [];

        $(padm_courses).each(function() {
            if($('#padmCourseFilter option[value="'+this.code+'"]').length == 0) {
                count++;
                output.push('<option value="'+this.code+'">'+this.name+'</option>');
            }
        });
        if(count > 0) {
            sel.append(output.join(''));
            sortDropDownListByText('padmCourseFilter');
        }
    } else {
        sel = $('<select>').attr('id','padmCourseFilter');
        $(padm_courses).each(function() {
            sel.append($("<option>").attr('value',this.code).text(this.name));
        });
        sel.appendTo('#padm_hub_filters');
    }

    $('#padmCourseFilter').change( function() {
        processMCRsByCourse($('#padmCourseFilter').val());
        var tables = $('.sv-datatable').DataTable();
        tables.rows('.duplicate').remove().draw();
        filterTheBlockFilter();
    } );
}