复制代码 代码如下:
<script type="text/javascript" src="/UploadFiles/2021-04-02/jquery-1.8.2.min.js"> <script type="text/javascript">
$(document).ready(function(){
$(".ddd input").attr("disabled","disabled");
$(".ddd select").attr("disabled","disabled");
});
</script>
<div class="ddd">
<input type="text" disabled>
<input type="text">
<input type="text">
<input type="text">
<select name="ddlsex" id="ddlsex" runat="server">
<option value="">--请选择--</option>
<option value="m" selected="selected">男</option>
<option value="f">女</option>
</select>
</div>
<script type="text/javascript" src="/UploadFiles/2021-04-02/jquery-1.8.2.min.js"> <script type="text/javascript">
$(document).ready(function(){
$(".ddd input").attr("disabled","disabled");
$(".ddd select").attr("disabled","disabled");
});
</script>
<div class="ddd">
<input type="text" disabled>
<input type="text">
<input type="text">
<input type="text">
<select name="ddlsex" id="ddlsex" runat="server">
<option value="">--请选择--</option>
<option value="m" selected="selected">男</option>
<option value="f">女</option>
</select>
</div>
标签:
jquery,控制,form
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“jquery批量控制form禁用的代码”评论...