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
相关问答:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
insert into [ScholarshipManagement].[dbo].[department] ([department],[specialization] ,[grade]) output inserted.departmentID values(? ,? ,? )
请问大哥们这个sql 语句应该用Java里的那个数据库操作方法? ......
我写了个jsp页面,然后改动了一下,改动的内容就是在jsp页面的js函数里加了个alert()语句,但是我访问这个页面时,死活都是原来页面的内容,我加了很多alert函数还是没改动前的页面内容;tomcat重启了,也重新部署这 ......
我这样写就没问题
#cp1 img{magin:5px;}
#cp2 img{magin:5px;}
#cp3 img{magin:5px;}
我想精简代码,用下面的写法,就出错了,是不是语法有问题?
#cp1,#cp2,#cp3 img{magin:5px;}
是语法有问题,你的写法相 ......