您的位置:首页 > 其它

from中嵌套from的一种方法

2011-09-27 09:11 239 查看
html前台代码为:

View Code

div class="mainsearch clearfix">
<form method="post" name="CatalogSearchForm" action='proList.aspx'
id="CatalogSearchForm">
<div class="searcharea">
<input type="text" onfocus="$('#searchKeywords')[0].value=''; document.getElementById('searchKeywords').onfocus = Function('void(0)');"
name="searchKeywords" id="searchKeywords" value="D7000" />
</div>
<div class="searchnow">
<a title="搜索" href="" onclick="searchProduct();">搜索</a></div>
<script type="text/javascript">
function searchProduct()
{
var name=$("#searchKeywords").val();
window.open("proList.aspx?ProName="+name);
}
</script>
</form>
</div>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: