我有 2 个 div:
<div id="1">
First name: <input type="text" name="FirstName" value="Mickey" /><br />
Last name: <input type="text" name="LastName" value="Mouse" /><br />
<input type="submit" value="Submit" />
</div>
<div id="2">
First name: <input type="text" name="FirstName" value="Mickey" /><br />
Last name: <input type="text" name="LastName" value="Mouse" /><br />
<input type="submit" value="Submit" />
</div>
您将如何获取/设置 div 编号 div 1 或 2 的名字和姓氏?
谢谢