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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:33:30+00:00 2026-06-11T07:33:30+00:00

The img below describes what I am trying to do: So when an entry

  • 0

The img below describes what I am trying to do:

Copy text from select list to textarea

So when an entry from the select list is selected and button “Copy” is pressed, it will add an < li > element to the text area.

Any ideas, resources?

  • 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-11T07:33:32+00:00Added an answer on June 11, 2026 at 7:33 am

    When the button is clicked you can just read the selected option using jQuery and add it to the text area.

    HTML

    <select id="selectBox">
        <option>option 1</option>
        <option>option 2</option>
        <option>option 3</option>
    </select>
    
    <input id="copyBtn" type="button" value="copy" />
    
    <textarea id="output">
        This is some intro text
    </textarea>​
    

    jQuery

    $("#copyBtn").click(function(){
        var selected = $("#selectBox").val();
        $("#output").append("\n * " + selected);
    });​
    

    You can only add text to a textarea, it doesn’t render html tags (so a list inside it won’t work). I used \n to create newlines.

    Fiddle

    Here’s a working fiddle

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

Sidebar

Related Questions

I'm trying to reference all img in an element. See my example below. <div
My code is as below, <cfmail to=sender@xyz.com from=receiver@xyz.com subject=email with image> <img src=cid:pClip width=350
I am trying to extact the IMG SRC value out of the below RSS
I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
I have below code: <a href=# id=@item.Id name=vote ><img src=/Content/images/021.png style=float:left alt= /></a> which
I have below structure <div class=mybox> <div id=imageslide> <a href=><img src=url /></a> </div> </div>
I got a image like below with padding-right: 15px <td><img style=padding:0px 15px 0px 0px;...
I want to get only data until the <img tag. my codes are below:
html img returned from ajax has class of 'tocrop'. Currently I Calling the function
var img = new Image(); img.src = images/myFolder/myImage.png; The above will only load myImage.png.

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.