Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This Is for arnyinc !!!

    I want to pass a text value from Buttoms to Textarea, but if I wanted the same text value twice I would press the same Buttom twice , in some other examples I had it would not let me repeat the same value
    Do you think this is possible<br><br>


    <input type="button" value="1">
    <input type="button" value="2">
    <textarea cols=20 rows=3 >my text area</textarea>

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    look at this:

    <form name="A">
    <input type="button" value="1" name="B1" onclick="document.A.TA.value+=this.value">
    <input type="button" value="2" name="B2" onclick="document.A.TA.value+=this.value">
    <textarea name="TA" cols="20" rows="3" >my text area</textarea>
    </form>

  • #3
    New Coder
    Join Date
    Dec 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Great this is what I neeed_ Thanx!!!


  • #4
    New Coder
    Join Date
    Dec 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help on Forms

    This is the form that I need (passing text values)
    Is it possible to pass the value to any of the Textareas I would like to in my page. or for Example:
    Lets say I click on the textarea
    and I want to pass my buttom value like this:

    my text [ buttom value] area

    <form name="TA">
    <input type="button" value="1" name="B1" onclick="document.TA.A.value+=this.value">
    <input type="button" value="2" name="B2" onclick="document.TA.A.value+=this.value">
    <textarea name="A" cols="20" rows="3" >my text area</textarea>
    </form>


  •  

    Posting Permissions

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