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

The Archive Base Latest Questions

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

I have created a fiddle here: http://jsfiddle.net/ozzy/paPRg/1/ Basically, I want to allow users to

  • 0

I have created a fiddle here:

http://jsfiddle.net/ozzy/paPRg/1/

Basically, I want to allow users to hover over a link, panel appears and they can click a link on that panel, which gets added to the input field.

Furthermore, I really need to make the LINKS dynamic.

Wonder if anyone knows :

  1. onclick the link url is placed unto the text field.
  2. if they click OWN LINK , it closes panel and focuses in the input field.
  3. how to make this dynamic, so if we wanted 2 or more of these on one page.. how would I make the script dynamic so it didnt mean a whole lot of repetitive javascript.

currently the link id is id=”demo-basic”

Any help appreciated.

  • 1 1 Answer
  • 1 View
  • 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-26T00:37:31+00:00Added an answer on May 26, 2026 at 12:37 am

    You could add a handler like this to your function (see http://jsfiddle.net/7QTXU/). This is heavily dependent on the structure of your document to find the appropriate form field to fill in, but if you want multiple ones with only a single handler, I think you’ll have to depend on the DOM structure to locate them. If you could simplify the relationship, that would help, for example, if the form filed were to immediately follow the preview, you could use next rather than having to traverse up to a parent node, then find the element. There may be a method on hovercard to close it using its API, but hide seems to work and not interfere with the operation of the plugin. Also, the check depends on the value of the href to see which one should close the hovercard. It would be better if it had a class that could be used rather than have to match on the href.

    $('.hc-details a').live('click', function() {
        var $this = $(this);
        if (!$this.attr('href').match(/^javascript/)) {
            $this.closest('p')
                 .nextAll('form:first')
                 .find('input:text')
                 .val($this.attr('href'));
        }
        $this.closest('.hc-details').hide();
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created fiddle here: http://jsfiddle.net/ozzy/WEGMh/ How it should look is here: Issue is
I am new in JQ. I have created this fiddle here: http://jsfiddle.net/SZ6mY/7/ All I
I have created a fiddle to test this : http://jsfiddle.net/Ninjanoel/X6ShS/ which works fine :(
I've created an example here : http://jsfiddle.net/Ninjanoel/9GEGU/ Basically, I'd like to affix something to
Fiddle here: http://jsfiddle.net/F6nJu/ I have a colored box: <div id=colorblock></div> #colorblock { background:#3ff; width:
Here's a fiddle where I can't get it to work http://jsfiddle.net/mjmitche/rAPcQ/22/ I have html
I have the following fiddle here: http://jsfiddle.net/9jN8L/ The idea is that sidebar will be
UPDATED TO ADD FIDDLE: http://jsfiddle.net/wvUqy/6/ I have a page_action in Chrome that parses the
I have created this Fiddle with this code: This is my problem I want
Consider this jsfiddle: http://fiddle.jshell.net/maple/JbEJN/show/ (this is the result window, in order for replaceState to

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.