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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:57:46+00:00 2026-06-14T06:57:46+00:00

UPDATED, TO BE MORE CLEAR: My current field that contains the value ‘1201026404’ (which

  • 0

UPDATED, TO BE MORE CLEAR:

My current field that contains the value ‘1201026404’ (which will change every time) :

<input id="ticket_fields_20323656" name="ticket[fields][20323656]" size="30" style="width:125px;" type="text" value="1201026404" tabindex="11">

The LI where I want the copied value ‘1201026404’ (which will change every time) to go when the page loads:

<ul class="multi_value_field" style="width: 99.5%;">
<li class="choice" choice_id="1201026404">1201026404<a class="close">×</a><input type="hidden" name="ticket[set_tags][]" value="1201026404" style="display: none;"></li>
</ul>

The Javascript that I have already made but need help with:

<script type="text/javascript">
copy = function()
{
    var n1 = document.getElementById("ticket_fields_20323656");
    var n2 = ‘what goes here??’
    n2.value = n1.value;
}
</script>
  • 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-14T06:57:47+00:00Added an answer on June 14, 2026 at 6:57 am

    does this work in firefox:

    <script type="text/javascript">
    copy = function()
    {
        var n1 = document.getElementById("ticket_fields_20323656");
        var n2 = document.querySelectorAll("ul.multi_value_field li:first");
        n2.innerHTML = n1.value;
    }
    </script>
    

    this uses querySelectorAll which doesnt exist in IE6,7,8 – otherwise you need to use the id of the element which im not sure you have

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

Sidebar

Related Questions

Current Situation: Direct Binding I have an NSTableView which displays the data that comes
Updated the question in order to make it more clear: I'm interacting with an
Updated in an attempt to be more clear I have three list of dictionaries
My code will be more clear I think- someList = list() foo = {'a':'b'}
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
UPDATED: Added one more question (Question #4). Hi all, I'm building myself a custom
[Updated with partial answers, some more detailed questions.] Does CouchDB support multi-domain hosting? Yes,
Code is read more often then updated. Writing more readable code is better than
Update: After some more reading I see that this problem is totally general, you
Problem I have a protobuf message definition with a MessageType field, which is an

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.