Does anyone know of any jQuery plugins that can work with a dynamic options object?
What I mean, I need to go through:
$('div').somePlugin({title : 'title1', label : function(element){}, etc.});
as well as
$('div').somePlugin({name : 'name1', url : function(element){},
event : 'event1', etc.});
Thus, the options object needs the ability to have a variable number of elements, key names, and values, which can be either static or functions. If this is a function, I need to be able to evaluate the function before passing the value back from the plugin.
I realize that you guys can really help without further details, so I thought I should see if I can learn from any examples that may be there, for example, something like this.
Thanks.