28,390
社区成员
发帖
与我相关
我的任务
分享
<select name="select" size="1" id="select">
<option value="0">请选择新闻类别</option>
<option value="1">行业资讯</option>
<option value="2">家装宝典</option>
<option value="3">装饰法规</option>
<option value="4">公司动态</option>
</select>
<%
sel = Request.Form("select")'sel=request("select")
if ccur(sel)=ccur(0) then 'sel="0" then
response.Write "<script>alert('请您选择新闻类别!');javascript:history.go(-1)</script>"
Response.end
elseif ccur(sel)=ccur(1) then 'sel="1" then
reg = add_industry_news
elseif ccur(sel)=ccur(2) then 'elseif sel="2" then
reg = add_decoration_collection
elseif ccur(sel)=ccur(3) then 'elseif sel="3" then
reg = add_decoration_regulations
elseif ccur(sel)=ccur(4) then 'elseif sel="4" then
reg = add_company_news
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body>
<form action="">
<select name="myselect" size="1" id="myselect">
<option value="0">请选择新闻类别</option>
<option value="1">行业资讯</option>
<option value="2">家装宝典</option>
<option value="3">装饰法规</option>
<option value="4">公司动态</option>
</select>
</form>
<script type="text/javascript">
$(document).ready(function(){
$("#myselect").val("<%=Request("myselect")%>").selected = true;
})
</script>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<select id="bag" >
2 <option value="178">女式</option>
3 <option value="177">男式</option>
4 <option value="179">通用</option>
5 </select>
</div>
</form>
<script type="text/javascript">
$(document).ready(function(){
$("#bag").val("179").selected = true;
})
</script>
</body>
</html>