$(
$(
在html標簽中設置按鈕被禁用
<input type=’button’ id=’test’ value=’disabled’>
在jquery中可以使用attr()函數修改按鈕的disable屬性
$(“#test”)
看一款完整實例代碼
<!doctype html>
<html>
<head>
<script src=";></script>
</head>
<body>
<form><input name="email" disabled="disabled" />
<input name="id" />
</form>
<script>$("input:disabled")val("this is it");</script> </body>
</html>
From:http://tw.wingwit.com/Article/program/Java/hx/201404/30487.html