input取值
<table width="100%" border="0" cellspacing="0" cellpadding="0"><br /> <tr><td><br /> <div class="jindu_anniu"><br /> <form><br /> <input type="button" class="anniu4" value="确定" /><br /> </form></div><br /> </td></tr><br /> <tr><br /> <td><br /> <div class="true_body"><br /><br /><br /><br /><br /><br /><table width="100%" border="0" cellspacing="0" cellpadding="0" class="ttbb5"><br /> <tr><br /> <th scope="col"><strong>序号</strong></th><br /> <th scope="col">国家</th><br /> <th scope="col">省份</th><br /> <th scope="col">地区</th><br /> <th scope="col">操作</th><br /> <br /> </tr><br /> <br /> {if $list or [email protected] neq 0 }<br /> {foreach from=$list item=item key=index}<br /> <tr align="center"><br /> <td>{$index}</td><br /> {if $item.parent_tow_id eq 2}<br /> <td class="ttbb6">{$item.country}</td><br /> <td class="ttbb6">{$item.province}</td><br /> <td class="ttbb6">{$item.name}</td><br /> {/if} <br /> {if $item.parent_tow_id eq 1}<br /> <td class="ttbb6">{$item.country}</td><br /> <td class="ttbb6">{$item.name}</td><br /> <td class="ttbb6"></td><br /> {/if} <br /> {if $item.parent_tow_id eq 0}<br /> <td class="ttbb6">{$item.name}</td><br /> <td class="ttbb6"></td><br /> <td class="ttbb6"></td><br /> {/if}<br /> <td class="ttbb6"> <input type="text" name="p" id="p" /> </td><br /> </tr><br /> {/foreach}<br /> {else}<br /> <tr><br /> <td align="center" colspan="5">--暂无数据--</td><br /> </tr><br /> {/if}<br /><br /> </table><br /> {include file=warning.tpl}<br /><br /></div><br /> </td><br /> </tr><br /><br />这个效果<br /></table>
<script><br />function foo() {<br /> var res = [];<br /> var texts = document.getElementsByName("p");<br /> for(var i in texts) res.push(texts[i].value;<br />}<br /></script><br />
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号