Set multiple CSS attributes for HTML element with jQuery
![jQuery logo](https://markimarta.com/wp-content/uploads/2016/08/jquery-logo1-150x150.png)
You can set multiple attributes for HTML element with jQuery.
$("#myControl").css({ 'color': 'red', 'background-color' : '#000' });
Another way to set multiple attributes for HTML element with jQuery is like this:
var cssObj = { 'background-color' : '#000', 'color' : 'red' } $("#myControl").css(cssObj);