JQuery batch control form disabled code

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

JQuery batch control form disabled code.

Code:

<script type="text/javascript" src="/jquery/jquery-1.8.2.min.js"></script> 
<script type="text/javascript">
//Batch to disable the form form 
$(document).ready(function(){ 
$(".ddd input").attr("disabled","disabled"); 
$(".ddd select").attr("disabled","disabled"); 
}); //by www.jbxue.com

</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="">Please select:</option> 
<option value="m" selected="selected">Male</option> 
<option value="f">Female</option> 
</select> 
</div>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by William at November 24, 2013 - 10:40 AM