ボタンを有効にしようとしていますが、これはデフォルトではブートストラップでは無効になっています。ブートストラップでデフォルトの無効化ボタンを有効にするにはどうすればよいですか?
私はremoveクラス、prop()
を使用してみましたが、jQueryでattrを削除しましたが、動作していないようです。
有効にする方法はありますか?
のように:これが動作しない理由を
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$('#example').prop('disabled', false);
</script>
</head>
<body>
<button id="example" type="button" class="btn btn-default btn-disabled"disabled>Text</button>
</body>
</html>
[の可能性の重複を必要としない限り、disabled属性は、そのの世話をするようあなたはBTN-無効なクラスを必要としないと思いますボタンとリンクを無効/有効にする最も簡単な方法(jQuery + Bootstrap)](http://stackoverflow.com/questions/16777003/what-is-the-easiest-way-to-disable-enable-buttons-and-links -jquery-bootstrap) –
試したコードを表示しますか? – Moumit