Code does not seem to do what it should

Discussion in 'Javascript' started by sheelpatel@gmail.com, Jun 16, 2006.

  1. Guest

    I am currently using php to output the javascript and was just
    wondering if my syntax was correct as the code does not seem to work

    <form action="" method="post" name="myform">
    <input name="test" type="text" />
    <input name="test2" type="text" onclick="document.myform.test2.value =
    document.myform.test.value" />
    <input name="test3" type="text" />
    <input name="test4" type="text" onclick="if
    (document.myform.test4.value == document.myform.test3.value) {
    document.getElementById(a).innerHTML='Some Text'}" /> <div id="a"> bob
    </div>

    </form>

    is part of what the php outputs, and the specific section I am having a
    problem with is the onclick section of test4 any help would be greatly
    appreciated, Thankyou
     
    , Jun 16, 2006
    #1
    1. Advertising

  2. Guest

    Those small mistakes get me every time, thankyou for your help.
     
    , Jun 16, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Dew

    Cookie does not seem to timeout

    Martin Dew, Jun 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    416
    Martin Dew
    Jun 13, 2005
  2. Nalaka
    Replies:
    12
    Views:
    2,009
    Steven Cheng[MSFT]
    Jan 18, 2006
  3. Replies:
    1
    Views:
    401
  4. Phi!
    Replies:
    1
    Views:
    188
  5. Marcel Brekelmans
    Replies:
    4
    Views:
    146
    Joe Fawcett
    Jan 26, 2004
Loading...

Share This Page