Newbie question please bear with me. I am following this tutorial. It illustrates how to write a very simple plugin. But may I ask how to use/call this plugin?
<script>
function changeColor($obj, color) {
$obj.css({color : color});
}
$.fn.myPlugin = function(options) {
return this.each(function() {
var $this = $(this);
changeColor($this, options.color);
});
};
</script>