JavaScript help

Results 1 to 2 of 2

Thread: JavaScript help

  1. #1
    Join Date
    Dec 1969

    Default JavaScript help

    Hello, I am having some problems with a JavaScript function in my .asp page.<BR><BR>Let&#039;s say I have a number of textareas labeled area1, area2, area3, etc.<BR><BR>I want to use a JavaScript function to do something like:<BR><BR>For (x=1; x&#060;10; x++)<BR>{<BR> document.form1.area + "x" + .value = "woohoo";<BR>}<BR><BR>I know the syntax isn&#039;t correct, but hopefully you can get the just of what I&#039;m trying to do.<BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: JavaScript help

    try this<BR><BR>form1["area" + x].value = "woohoo";<BR><BR>

Posting Permissions

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