I am in a project in mvc I have the following.
<script>
$(document).ready(function () {
$("#selecctall").change(function () {
$(".checkbox1").prop('checked', $(this).prop("checked"));
});
});
</script>
<table style=" font-size:20px" align="center" class="table-striped, text-center, table-condensed" cellpadding="20">
<thead>
<tr class="text-center" style="color:#e98300;font-family:'Trebuchet MS'">
<th class="text-center" ; bgcolor="black"><input type="checkbox" name="chkAll" value="All" id="selecctall" /></th>
</tr>
</thead>
foreach(filtro de la busqueda)
{
<tbody>
<tr style="color:white ;font-family:'Trebuchet MS'">
<td class="text-center"><input type="checkbox" name="sid" class="checkbox1" /></td>
</tr>
}
<input name="posponer" class="btn btn-primary btn-lg" type="submit" value="posponer" style=" color:white" title="Operar" />
At the end of the table I have a button, and I need you to take all the checkbox
that are marked and go to the controller to be able to operate with them.