I have an html page with jquery that contains a table with buttons in a column as following. I need to disable all buttons with class Crem
.
I have try the following but not working.
$(document).ready(function() {
$( ".Crem" ).prop( "disabled", true);
}
<table id="settlementsd" class="table table-striped">
<thead>
</thead>
<tbody>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th><button type="submit" id="stlmtdadd" class="Crem btn btn-sm btn-info" ><span class="glyphicon glyphicon-plus-sign"></span> </button></th>
</tr>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th><button type="submit" id="stlmtdadd" class="Crem btn btn-sm btn-info" ><span class="glyphicon glyphicon-plus-sign"></span> </button></th>
</tr>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th><button type="submit" id="stlmtdadd" class="Cadd btn btn-sm btn-info" ><span class="glyphicon glyphicon-plus-sign"></span> </button></th>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>