In a jquery plugin options you often see true and false used like this:
var defaults = {
one: 'false',
two: 'true',
three: 'true'
};
I was wondering if I could do something like this instead:
var defaults = {
doStuff: 'three two' // order of these wouldn't matter
};
This code above would equal to:
one == false
two == true
three == true
Question is, how could I achieve that?
May be you want something like this