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

  • Home
  • SEARCH
  • 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 682785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:38:06+00:00 2026-05-14T01:38:06+00:00

How to change inline colorbox ‘href’ dynamic like i want when i click on

  • 0

How to change inline colorbox ‘href’ dynamic
like i want when i click on a ‘tr’ colorbox take it ‘title’ to ‘href’
and show it
like

<table>
    <tr title="project1">
        <td></td>
    </tr>
    <tr title="project2">
        <td></td>
    </tr>
</table>
<div id="project1" style="display:none">this is about project one</div>
<div id="project2" style="display:none">this is about project two </div>
  • 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-14T01:38:06+00:00Added an answer on May 14, 2026 at 1:38 am

    You can do this:

    $("tr").click(function() {
       $("#" +  $(this).attr("title")).show();
    });
    

    On row click, this takes the title attribute, uses it as an ID selector and shows the matching element. If you want to hide the others when this happens, give your divs a class like class="project" and just add a call to hide the test before showing, like this:

    $("tr").click(function() {
       $(".project").hide();
       $("#" +  $(this).attr("title")).show();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's easy to set inline CSS values with javascript. If I want to change
I have the following markup with inline javascript and would like to change it
How can I change the title of the command prompt window every time I
Will the display property of an inline element change once a float property is
I have few inline sql statements with some arrays and if loops. I want
I want to change the background color of the DIV depending on some true/false
Change Data Capture is a new feature in SQL Server 2008. From MSDN: Change
How would I change the initial templates created by Xcode when creating a new
Is it possible to change the width of a scroll bar on a form.
Lately I had to change some code on older systems where not all of

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.