> Which disables the draggable functionality - this is essentially what  
> I'm after.
>
> ie,
>
>         $('.selector').myplugin('somemethod');
>
> Can anyone please advise/point me in the right direction of how to do  
> this?

Something like this maybe:

$.fn.myplugin = function(option) {

        this.each(function() {
                // do something with each matched element

                switch (option) {
                case: 'a':
                case: 'b':
                case: 'c':
                }

        });
        return this; // important
};

Reply via email to