html option select 事件 - Java / Web 开发
<select name="sel" onselect="???" >
<option value="768">768Kbps</option>
<option value="512" selected>512Kbps</option>
<option value="384">384Kbps</option>
</select>
我想在select 中 option做改变时一个js发送一个url
这个js怎么写啊,
就象是csdn中博客管理
请选择分类: Hibernate iBatis
onchange=方法
<html>
<head>
<script>
function mm()
{
var i=document.frm1.select1.selectedIndex;
var address=document.frm1.select1.options[i].value;
document.location.href=address;
}
</script>
</head>
<body>
<form name="frm1">
<select name="select1" onchange="mm()">
<option selected>请选择</option>
<option value="http://www.baidu.com">百度</option>
<option value="http://www.google.com">google</option>
</select>
</form>
</body>
</html>
onchange!
通过onchanger方法调用js
<form action="" method="post">
<div align="center">
&l
相关问答:
我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
如题,在WINDOWS底下的CODE会,但在LINUX下不知道如何实现,JS的代码应该是不一样的。 求教。
分不够再加。
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
<span id="Label1">如果能看到这个标签 说明我们已经能从HTML 页面上获取了这个元素控件传递到Silverlight应用程序中 </span>
<br />
<input type="sub ......
为什么HTML以及一些其它标签会显示一些特定表现形式呢?如HTML中的换行标签<BR/>在底层是怎样实现的呢?现实的原理是什么呢
去W3C官方网站上,看看吧!我想一看你就明白了
我猜和编译原理有关,浏览器里可 ......
用css缩写 使用缩写可以帮助减少你CSS文件的大小,更加容易阅读。css缩写的主要规则请参看《常用css缩写语法总结》,这里就不展开描述。
二.明确定义单位,除非值为0
忘记定义尺寸的单位是CSS新手普遍的错误。在HT ......