Example 21:

This example show you how to:

  • Load the plugin
  • Do something when you onChange the mSelect: onChange

HTML:
<select id="country_id" class="mSelect" multiple="multiple"></select>
JS:
$(function () {
    $('#country_id').mSelect({
        url: 'ajax/example1.php',
        onChange: function() { // callback functions
            // do something here...
            console.log("onChange mSelect"); 
            alert("onChange mSelect");   
        }
    });
});