SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Freo
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Adding text (values) to a textarea PHP/Javascript

    I'll looking for a JavaScript or a PHP script that can add values to a text area.

    The idea is that I have a list of products and when the user clicks on a product the vaule (of that product) is added to the textarea for submission with the form.


    So for example if in my list I had lamb, beef and chicken and the user wanted to order beef and lamb they could click on the relevant links and the value would be added to the textarea.

    Any ideas would be great.



  2. #2
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Tintern
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try putting this in the onclick event ..... document.getElementById('textareaname').innerHTML += 'additional wording'.
    Nemo mortalium omnibus horis sapit


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •