Reputation: 1550
I have this plugin that should receive an integer as a parameter
('foo').myplugin(3);
How do I pass the parameter to the plugin function?
I have tried something like this -
$.fn.myplugin = function(int){
alert(int);
} //suppose to alert "3"
yet, it doesn't seem to work
Upvotes: 0
Views: 52