I have been working on a jQuery-like JavaScript library. The next function I would like to add is a .css()
function.
Something like this:
function css(elem,name,value){
elem.style.name = value;
// >>>> ^ <<<<<<
// needed variable variable
}
Anyone know what I should do? I am at a loss, I have been Goggling suggestions for the past hour and I haven't come up a solution.
Any ideas?
Thanks.