Parse options from an attribute of an element.
<span id="test" data-options="testing:true; test1:123; test2:hello"></span>
var opts = $.parseOptions('#test');
// {
// testing : true,
// test1 : 123,
// test2 : "hello"
// }
Parse options from an attribute of an element.
Parse options from an attribute of an element.
<span id="test" data-options="testing:true; test1:123; test2:hello"></span>
var opts = $.parseOptions('#test');
// {
// testing : true,
// test1 : 123,
// test2 : "hello"
// }
Parse options from an attribute of an element.