hi,
i'm having this markup:
<div plug=tButton></div>
and wrote a little plugin which makes a button ouf of the div like this:
var cmd = $("[plug]");
cmd.tButton();
my question: when only having the div (and its plug-attribute), how can i apply the corresponding plugin to it (without using eval)?
it should be like:
var plug = div.attr("plug");
div[plug];
but doesn't work obviously.
thx.