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 7734125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:10:19+00:00 2026-06-01T07:10:19+00:00

what i am trying to do is when i click on the link, it

  • 0

what i am trying to do is when i click on the link, it will grab the title of the then use it as an ID selector to call an element with the ID of #target to show. I have set the title of the link to be as such about and it is supposed to target a . My guess is that the data type is not the same so I cannot use the title directly as a ID selector? Please help or is there any better solution for this to be done?

$("a").click(function(event){
        event.preventDefault();
        var target = $(this).attr("title");
        alert(target);
        $("article").fadeOut("slow", function(){
            //animation completed
            $(target).fadeIn("slow");   
        });
    });     
  • 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-06-01T07:10:20+00:00Added an answer on June 1, 2026 at 7:10 am

    all you can do is

    $("#" + target).function()
    

    so you code will be

     //animation completed             
     $("#" + target).fadeIn("slow");  
    

    As per the jQuery documentation “#” is id selector, so whenever you are try to access element by its id you need ot appedn “#” i.e you code will become

    $("#"+ youid) or $("#elementid")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use an intent to open a link to a
Im trying to build sort of slide where when click on link .animate will
I have a link that will allow users to click it and it fetches
I am trying to: click on the link shown below and have the value
I'm trying to click on a link using jquery. There only appears to be
I am trying to do the following: On link click: 1.) fade out an
Two things I'm trying to achieve and need help with 1) Click a link
I'm trying to load different Google Maps depending on what link they click. Something
Im trying to add click events to shapes within a visio file.. I have
So let's say I'm trying to click a link in the QWebView, here is

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.