Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    31

    Insert string into a textbox

    Does anyone have any tips on how I can get a link to insert a string into a textbox without reloading the entire page? I am familiar with PHP but I am thinking it is going to require some JavaScript. Any ideas would be appreciated.

  2. #2
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    3,103
    Is that what you are looking for:
    http://tnt.goldnet.ca/argh/strintextbox.html

  3. #3
    Join Date
    Oct 2006
    Posts
    31
    Kind of, except that it doesn't clear the entire textarea it just adds itself to the end.

  4. #4
    If you need to append something..well just modify the function on that link.

    HTML Code:
    <a href="javascript://" onclick="document.someform.sometbox.value = document.someform.sometbox.value + 'some value is here';">this</a>

  5. #5
    Join Date
    Oct 2006
    Posts
    31
    Thank you very much.

Posting Permissions

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