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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:03:22+00:00 2026-05-13T08:03:22+00:00

here is my html output: <script language=javascript> function append_suggestion() { $(‘input[name=cn]’).append($(‘#rand-character’).val()); } </script> <form

  • 0

here is my html output:

<script language="javascript">
  function append_suggestion() {
    $('input[name="cn"]').append($('#rand-character').val());
  }
</script>

<form name="form" action="/search/results" method="get" class="search-form" id="search-autocomplete">
  <input size="28" class="search-field" id="cn" name="cn" type="text" value="" />      <input type="submit" name="" value="" class="button" />
</form>

<a href="#" id="rand-character" onclick="append_suggestion()">link</a>

After clicking the link nothing happens (it’s supposed to insert link text into the input field). How to correct this link behavior?

Thank you.

  • 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-13T08:03:23+00:00Added an answer on May 13, 2026 at 8:03 am

    Try this:

    var cnEl = $('#cn');
    cnEl.val(cnEl.val() + " " + $('#rand-character').text());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Answering: YES! You can change the value of a hidden… May 16, 2026 at 11:49 am
  • Editorial Team
    Editorial Team added an answer Delegate is a design pattern, CoreData a persistence framework. You… May 16, 2026 at 11:49 am
  • Editorial Team
    Editorial Team added an answer This is how I did it! <?php // Displays user… May 16, 2026 at 11:49 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

For simplicity, i have the following file named test.jsp: <script language=javascript> alert(a$b.replace(/\$/g,k)); </script> I
I've been asking similar questions here today, but I'm seeing I think the issue
I'm using a PHP script to read an RSS feed in my Flex 4
I have a Drupal view which should output a video player using flash. I
XML: <?xml version=1.0 encoding=windows-1251?> <mode> <term> <name>abhdk</name> </term> <term> <name>njhjsu</name> </term> <term> <name>sdasd</name> </term>
I would like to build the latest version of PDFBox ( http://pdfbox.apache.org/userguide/dot_net.html ) for
I'm seeing some strange behavior in IE trying to call functions in another page
Is there a way to define styles for a combination of classes? For example,
I don't think that this is doable, but wanted to throw it out to
I know the number of lines of code is completely arbitrary and a horrible

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.