Web Analytics Made Easy -
StatCounter adding information to text area - error - CodingForum

Announcement

Collapse
No announcement yet.

adding information to text area - error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • adding information to text area - error

    I'm trying to add some content to a text area form element before the content of the text area.

    I can do it, so that the added content apears after the text area content but if I switch the script around I get an error.

    This works:
    Code:
    onClick="window.document.formmain.notes.value += 'add this'"
    But if I try this then the error occurs:
    Code:
    onClick="'add this' += window.document.formmain.notes.value"
    Any ideas?
    asp vbscript
    twitter.com/justinreid

  • #2
    onclick="window.document.formmain.notes.value='add this'+window.document.formmain.notes.value"

    Comment


    • #3
      Thanks John, that was starting to bug me.
      asp vbscript
      twitter.com/justinreid

      Comment

      Working...
      X