code: function(select, option, type) {
          // Add disabled attr if disabled
          var disabledClass = (option.is(':disabled')) ? 'disabled ' : '';
  
          // add icons
          var icon_url = option.data('icon');
          var classes = option.attr('class');
          if (!!icon_url) {
            var classString = '';
            if (!!classes) classString = ' class="' + classes + '"';
  
            // Check for multiple type.
            if (type === 'multiple') {
              options.append($('<li class="' + disabledClass + '"><img src="' + icon_url + '"' + classString + '><span><input type="checkbox"' + disabledClass + '/><label></label>' + option.html() + '</span></li>'));
            } else {
              options.append($('<li class="' + disabledClass + '"><img src="' + icon_url + '"' + classString + '><span>' + option.html() + '</span></li>'));
            }
            return true;
          }
  
          // Check for multiple type.
          if (type === 'multiple') {
            options.append($('<li class="' + disabledClass + '"><span><input type="checkbox"' + disabledClass + '/><label></label>' + option.html() + '</span></li>'));
          } else {
            options.append($('<li class="' + disabledClass + '"><span>' + option.html() + '</span></li>'));
          }
        }
docs: Function that renders and appends the option taking into account type and possible image icon.