check css rule jquery code example
Example 1: jquey check css style
$('#yourElement').css('position') == 'absolute'
Example 2: jquery styles
//create an object and add styles
const styles= {
backgroundColor: "crimson",
fontWeight: "bold",
border: "2px solid lime",
};
$("selector").css(styles);