i am trying trying to find out if a div style display is block then do something
here is an e.g
this is just a guess i am tryng to do it in jquery
if("#toshow":"display" == "block"){
}else{
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So you want to distinguish between
display: blockanddisplay: none? If so, you can better use theis()function in combination with the:visibleselector for this:This works regardless of if you used
display: block, ordisplay: inline, ordisplay: inline-block.