I’m currently making a plugin. I have many options and want to know if it would be possible to make a sub-section for an option in an jquery plugin.
Like this:
$('#id').name({
extra: {
more: ''
}
});
I really don’t know if its possible. But if it is I would also need to know how to retrieve the information in more for example.
You can set them just how you have it set up. To retrieve the options, simply use
options.extra.more.If you do this:
You can use
options.extra.more.evenMoreto retrieve it, and so on.Here’s an example: http://jsfiddle.net/ZvfsQ/
I hope this helps.