Code does not seem to do what it should

S

sheelpatel

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top