Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    202

    Unanswered: Concatenation Problem

    Hi,

    I have this one problem which is keeping me up for nites already.

    I have this javascript at the top of the page which is called by ASP code below (Page=HTML PAGE).

    function update(forNum)
    {
    document.attendance1.test1.value="OP";
    }

    the value test1 is kinda dynamic although wat shown here is static.
    Wat i really wan to do is this test1 can change to test2,test3,..........
    the forNum value is the 1,2,3,.........
    how do i concat the test with the forNum fot the output of test1.
    Thanx

  2. #2
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Seems like a JavaScript question but check this out:

    Dynamically Access Form Elements With Eval() by Boris Feldman
    http://www.inquiry.com/techtips/js_p.../10min0200.asp
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  3. #3
    Join Date
    Mar 2004
    Posts
    202
    Hi,

    I manage to get it.
    Thanx a lot

Posting Permissions

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