(
function
($){
$.fn.extend({
yourPluginName:
function
(options) {
var
defaults = {
yourDefaults
:
'here'
, anotherDefault: ‘here’
}
// This way, what you pass as args overwrite your defaults:
var
options = $.extend(defaults, options);
return
select;
// ...And then, your functionality here...
}
});
})(jQuery);
$(‘#someSelector’).yourPluginName({yourOptions:’here’});