Example 11:

This example show you how to:

  • Load the plugin
  • Custom the Name of the columns
  • Add more than 1 columns for the mSelect
  • Custom the width of the mSelect dropdown container

HTML :
<select id="state_id" class="mSelect" multiple="multiple"></select>
JS :
$(function () {
    $('#state_id').mSelect({
        url: 'ajax/example11.php',
        columns: ['State Name', 'Country Name', 'Phone Code'],
        minWidth: 550
    });
});