标签:params charset 2.3 idt xmlns views ext center sdn
下拉框禁止编辑权限
1、实现源码
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>下拉框禁止编辑权限</title>
<script type="text/javascript" src="jquery-1.12.3.js"></script>
<style type="text/css">
#sel{
width:200px;
height:30px;
}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
var sel = $("#sel option:selected").val();
alert(sel);
});
</script>
</head>
<body>
<select id="sel" tabindex="0" disabled="disabled">
<optgroup>
<option value="1">石头</option>
<option value="2">沙子</option>
<option value="3">木材</option>
</optgroup>
</select>
</body>
</html>
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
标签:params charset 2.3 idt xmlns views ext center sdn
原文地址:https://www.cnblogs.com/odejsjhshw/p/10374568.html