During Pagination, page reloads and the checked checkbox becomes unchecked on returning back to that page. I expect that the checked checkbox donot disappear in paginating.Is there any way to make checkbox data recovering.It should show the checked row on multiple pages. The code is:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pagination With Ajax</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
</head>
<body>
<div class="row tableOverflow">
<table class="table table-bordered table-striped" border="1">
<tr>
<th>Check
</th>
<th>ID</th>
<th>Student Name</th>
<th>Address</th>
<th>Age</th></tr>
@foreach ($data as $key => $value)
'"
class="cursor"> --}}
<tr>
<td>
<div id="checkbox-container">
<div><input type="checkbox" class="" name="check" id="" autocomplete="off"></div>
</div>
</td>
<td></td>
<td></td>
<td> </td>
<td></td>
</tr>
@endforeach
</table>
</div>
</div>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire