get an elements style in jquery code example
Example: jquery styles
//create an object and add styles
const styles= {
backgroundColor: "crimson",
fontWeight: "bold",
border: "2px solid lime",
};
$("selector").css(styles);
//create an object and add styles
const styles= {
backgroundColor: "crimson",
fontWeight: "bold",
border: "2px solid lime",
};
$("selector").css(styles);