IDs & NAMEs
Posted: Sat Jan 25, 2003 3:17 pm
Could someone please explain what difference JavaScript sees between ID and NAME tags.
example: <div id="thediv" name="bob">
Thanks.
example: <div id="thediv" name="bob">
Thanks.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<html><body>
<pre><?php print_r($_POST); ?></pre>
<form method="POST">
<input type="input" name="withName" />:name only<br />
<input type="input" id="onlyId" />:id only<br />
<input type="input" name="theName" id="theId"/>: name & id<br />
<input type="submit" />
</form>
</body></html>