. 代碼如下:
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<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>