How to modify STYLE attribute of element with known ID using JQuery December 30, 2023 by Tarik Use the CSS function from jQuery to set styles to your items : $('#buttonId').css({ "background-color": 'brown'});