How would I go about getting a variable from a jQuery plugin?
index page
$("#test-div").myplugin();
if(testvariable == 1){
alert("test variable equals 1");
}
The plugin page
(function($){
$.fn.myplugin = function(){
var testvariable=1;
return testvariable
}
})(jQuery);