counting characters in texarea

Results 1 to 2 of 2

Thread: counting characters in texarea

  1. #1
    ninjavibe Guest

    Default counting characters in texarea

    hi,<BR><BR>I&#039m trying to create a script that will count the characters or prefferably the rows that the user has put as input in a form textarea.<BR><BR>If it exceeds a certain number it should put a value in a database and all counting must be made at the responding asp-page.<BR><BR>Does anyone have a clue how to create this counting script? Any help would be highly appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: counting characters in texarea

    var str = document.forms[&#039formName&#039].elements[&#039textareaName&#039].value;<BR><BR>var lengthOfInput = str.length;<BR><BR><BR>j

Posting Permissions

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