【发布时间】:2012-04-14 22:39:35
【问题描述】:
我有这个表格:-
<form action="">
<table border="0">
<td colspan="2" class="instruction">Select your desired option to search.</td>
</table>
<table>
<tr>
<td><label>
<input onClick="generatenew();" type="radio" name="search_option" value="code" id="search_option_0">
Customer Code</label></td>
<td><label>
<input type="radio" name="search_option" value="company" id="search_option_1">
Customer Company</label></td>
<td><label>
<input type="radio" name="search_option" value="name" id="search_option_2">
Customer Name</label></td>
<td><label>
<input type="radio" name="search_option" value="email" id="search_option_3">
Customer Email</label></td>
</tr>
</table>
<input class="Button" name="search_submit" type="submit" value="Search">
</form>
现在在最后一个</table> 之后,我想在选择任何选项按钮时创建一个文本框。意味着,动态地不加载页面。
【问题讨论】:
-
有效的HTML不允许你把输入元素放在之后,你需要把它放在之后
-
k 那么我如何在
</table>之后创建一个文本框@
标签: javascript ajax forms dynamic onclick