Results 1 to 2 of 2

Thread: Why object does not work

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Why object does not work

    This example does not work

    <form name=a action='p.php'>
    <input type=text name='b[0]' value=''>
    <input type=text name='b[1]' value=''>
    </form>

    <script language=JavaScript>
    a.b[0].value="khaled";
    a.b[0].value="mamdouh";
    </script>



    ______

    I want to give b[0] input value using JavaScript , How ?

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    should be:
    document.a.b[0].value="khaled";

Posting Permissions

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



Click Here to Expand Forum to Full Width