I'm trying to make an button enabled which is by default disabled in bootstrap.
I have tried using remove class, prop()
, and remove attr in jQuery but it does not seem to work.
Is there a way to enable it?
like :
<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>