怎样分别在服务器端和客户端得到<select>域的选中索引值? 在asp中没有直接的方法完成,建议用.net 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能否在客户端检测然后作为queystring发送呢?如何检测?我只知道 name[n].selected 客户端:<html><head><title>无标题文档</title><SCRIPT LANGUAGE=javascript>function mm() { alert("You Have Selected "+form1.select.selectedIndex);}</SCRIPT></head><body><form name="form1" method="post" action="#"> <select name="select"> <option>s1</option> <option>s2</option> <option>s3</option> <option>s4</option> </select> <input type="submit" name="Submit" value="Submit" onclick="mm()"></form></body></html> 服务器端:<% str=Request("select") Response.Write str%> js可以类似asp.net地址栏传参数吗?如何获取? photo tagging(类似校内网圈人功能) 求一个js+XML的树形菜单要求支持IE6+,ff,chrome 谁有或者哪里有Jsp的小项目吗?刚学jsp不要太复杂的 在div 里怎么设置它的 onclick 事件,使其点击此div时仍返回当前页或者跳转到其他页 textarea如何让他始终显示最后一行 怎样获取上一页面的某一隐藏控件值? (求助)如何在一个frame中刷新另一个frame中的页面?? frame的问题 关于字符串的问题: 保存到发件箱的代码如何写?急 如何使窗口在打开后,控制他,使窗口最大化
<html>
<head>
<title>无标题文档</title>
<SCRIPT LANGUAGE=javascript>
function mm()
{
alert("You Have Selected "+form1.select.selectedIndex);
}
</SCRIPT>
</head><body>
<form name="form1" method="post" action="#">
<select name="select">
<option>s1</option>
<option>s2</option>
<option>s3</option>
<option>s4</option>
</select>
<input type="submit" name="Submit" value="Submit" onclick="mm()">
</form>
</body>
</html>
<%
str=Request("select")
Response.Write str
%>