Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Export</title>
- <meta charset="utf-8">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" href="https://www.jqueryscript.net/demo/Excel-like-Bootstrap-Table-Sorting-Filtering-Plugin/excel-bootstrap-table-filter-style.css">
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script src="https://www.jqueryscript.net/demo/Excel-like-Bootstrap-Table-Sorting-Filtering-Plugin/excel-bootstrap-table-filter-bundle.js"></script>
- <script src=""></script>
- </head>
- <body>
- <button class="btn filter btn-info"><i class="fa fa-filter"></i></button>
- <div class="container">
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>Firstname</th>
- <th>Lastname</th>
- <th>Email</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>John</td>
- <td>Doe</td>
- <td>john@example.com</td>
- </tr>
- <tr>
- <td>Mary</td>
- <td>Moe</td>
- <td>mary@example.com</td>
- </tr>
- <tr>
- <td>July</td>
- <td>Dooley</td>
- <td>july@example.com</td>
- </tr>
- </tbody>
- </table>
- </div>
- <script>
- $(document).ready(function($) {
- $(".filter").click(function(event) {
- $(this).removeClass('filter');
- $('table').excelTableFilter(function(){
- });
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement