Monday, 19 January 2015

Filled Under: , ,

Set CSS background color of an HTML element via JavaScript?

In general, CSS properties are converted to JavaScript by making them camelCase without any dashes. So background-color becomes backgroundColor.

0 comments:

Post a Comment