Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Check opacity by jQuery

How do I check if the opacity of an element is 0, and then do something in jQuery?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Have you tried using .css()?

if($('elemFoo').css('opacity') == 0) {
    doSomething();
}
over 4 years ago · Santiago Trujillo Report

0

You can do as

$(function() {

    if ($('#foo').css('opacity') == 0)
        alert('lol');

});

Demo : http://jsfiddle.net/9GEZ5/

over 4 years ago · Santiago Trujillo Report

0

if( $("#id_of_your_thing").css('opacity') == "0" )
  do_stuffs();
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!