Answers for "how to check if css exist in element in jqeury"

1

jquery check if div has a certain style

if ($('#yourElement').css('position') == 'absolute')
{
   // true
}
Posted by: Guest on March-31-2021
0

jquery if css property is

if( $("#selector").css('display') == 'block') {
  //Your code
}
Posted by: Guest on January-14-2022

Code answers related to "how to check if css exist in element in jqeury"

Code answers related to "Javascript"

Browse Popular Code Answers by Language