Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7689989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:17:37+00:00 2026-05-31T20:17:37+00:00

<div id=jobs> <table> <tbody> <tr id=test1> <td>TEST1</td> <td><button data-job=test1>&gt;</button></td> </tr> <tr id=test2> <td>TEST2</td> <td><button

  • 0
<div id="jobs">
    <table>
        <tbody>
            <tr id="test1">
                <td>TEST1</td>
                <td><button data-job="test1">&gt;</button></td>
            </tr>
            <tr id="test2">
                <td>TEST2</td>
                <td><button data-job="test2">&gt;</button></td>
            </tr>
        </tbody>
    </table>
</div>
button:hover
{
    opacity: 1;
    filter: alpha(opacity=100); /* For IE8 and earlier */
    color:red;
}
    $("button").click(function () {
        var animationDuration = 500;
        var job = $(this).data("job");
        var selectedRow = document.getElementById(job);
        $("#jobs").find("tr").not(selectedRow).fadeTo(animationDuration, .3);
        $(selectedRow).fadeTo(animationDuration, 1);
        });

See my JS Fiddle example.

The functionality is supposed to “grey out” all rows in the table (excluding the row containing the clicked button) upon clicking any given button. However, on hover, any button should be fully opaque.

Clearly the class matches because the “>” turns red.

So why does the hovered opacity not change to 100%?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:17:39+00:00Added an answer on May 31, 2026 at 8:17 pm

    2019 rgba Update

    You should have no problem using rgba syntax 7 years on from answering this question. It is supported in all major browsers and has been for a while.

    Compatibility

    Original Answer

    Child elements will only be 100% opacity of their parent elements opacity. In this case your button in 100% of 0.3 opacity. The only way I know how to do this without using rgb(,,,) (which won’t work in IE) is to have the TD positioned relatively and set the button to be positioned absolutely.

    EDIT:

    This can also be done manually with the use of jQuery to fade each element rather than fading the parent.

    Try this fiddle http://jsfiddle.net/cMx49/18/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have website http://yournextleap.com/fresher-jobs Please find out last div having HTML <div data-recommendation= data-id=3790
I have defined my table like this: <div id=a> <table id=main_table border=1> <tr> <th>Jobs</th>
struct Div { int i; int j; }; class A { public: A(); Div&
In trying to build a page where I can filter the types of jobs
Controller.cs is: public ActionResult ViewRequest(int id) { Job job = Jobs.GetJob(id); return View(job); }
I have a web page containing a table of jobs running on my system.
Ok, so I have a table containing information about jobs. The goal is that
I am trying to create a page that displays job information for computing jobs
Below is the structure of my div: <div id=ctl00_ContentPlaceHolder1_Jobs_dlItems_ctl01_a onmouseup=checkMultipleSelection(this,event);> <table cellpadding=0 cellspacing=0 border=0
I have the following code: <div class='menu'> <div class='menu_1'> <a href='../test.php'>JOBS</a> </div> <div class='menu_2'>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.