Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script type="text/javascript">
- $(document).ready(function(){
- var display_table;
- var goto_bottom;
- display_table = function(){
- $("#search_button").click(function() {
- var values = [];
- $("input:checkbox[name=category_search]:checked").each(function(){
- //values.push($(this).next("a").text());
- values.push($(this).val());
- alert(values.join());
- });
- });
- }
- goto_bottom = function(){
- $("#search_button").click(function() {
- $("html, body").animate({ scrollTop: $(document).height() }, "slow");
- });
- }
- });
- </script>
- </head>
- <body>
- <div style="position:fixed; top:95px; right:50px;">
- <button class="btn btn-primary btn-fill" style="width:200px;" id="search_button" onclick="display_table() , goto_bottom()">
- <i class="fa fa-search"></i>search</button>
- </div>
- </body>
- $(document).ready(function(){
- var display_table;
- var goto_bottom;
- display_table = function(){
- $("#search_button").click(function() {
- $("#search_button").click(function() {
- var values = [];
- $("input:checkbox[name=category_search]:checked").each(function(){
- values.push($(this).val());
- alert(values.join());
- });
- });
- });
- }
- goto_bottom = function(){
- $("#search_button").click(function() {
- $("html, body").animate({ scrollTop: $(document).height() },"slow");
- });
- }
- });
Add Comment
Please, Sign In to add comment