ok, I know, the title may sound a little weird...
Following problem:
I have a jquery function like this:
(function($){
$.fn.myFunction = function(opts){
var settings = {
params: {}
};
}
if ( options ) {
$.extend( settings, options );
}
}
Now, the function is applied to an element like this:
$('#elem').myFunction({'data':'test','data2': 'test2'});
How do I access the settings-property from outside of the function?
Means, after the function is initialized, I want to change some of the settings - I can't figure out how, though.
Any ideas?
(hope it's not too confusing what I wrote :)