Wednesday, 16 May 2018

Data table search in laravel

<script src="<a href="https://code.jquery.com/jquery-3.3.1.js">https://code.jquery.com/jquery-3.3.1.js</a>" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>

 <script> $("#search").keyup(function(){ _this = this; $.each($(".table1 tbody tr"), function() { if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) === -1) $(this).hide(); else $(this).show(); }); }); </script>


<input type="text" autocomplete="off" id="search" class="form-control input-lg" placeholder="Enter RESERVATIONS Id, firstname, lastname, Email Here">

No comments:

Post a Comment