kiltjs / jqlite

Tiny JavaScript DOM query library that uses pure CSS selectors
MIT License
99 stars 19 forks source link

css() function doesn't work with JSON #13

Closed RongBranovate closed 9 years ago

RongBranovate commented 9 years ago

HI, I'm trying to add css through the js with the .css() function and i have alot of css code to use, only thing is that the format where you could write:

$('.myClass').css({"background-color":"yellow","font-weight": "bolder"});

doesn't work... i insted have to do it like this:

$('.myClass').css("background-color","yellow");
$('.myClass').css("font-weight", "bolder");

which take alot of code and time, what can i do?

Thanks in advance

RongBranovate commented 9 years ago

As soon as i pressed the "send issue" button you implamented that :+1:

Thanks!

jgermade commented 9 years ago

hehe! thanks you!