1(function ($) { 2 "use strict"; 3 $(document).ready(function () { 4 5 $('#my-ajax-button').on('click', function() { 6 7 $('div#joblistid').html(''); 8 9 // Read values from input fields 10 var searchKey = $('.bh-search').val(); 11 console.log(searchKey); 12 var locationKey = $('.bh-location').val(); 13 console.log(locationKey); 14 var page = $('.bh-page').val(); 15 console.log(page); 16 17 // Your AJAX request 18 $.ajax({ 19 type: 'POST', 20 url: ajax_object.ajax_url, 21 data: { 22 action: 'bullhorn_jobs_pagination', // The name of your AJAX handler function 23 search: searchKey, // Pass the search key 24 location: locationKey, // Pass the location key 25 page: page // Pass the page number 26 // Add any additional data you want to pass to the server 27 }, 28 success: function(response) { 29 console.log('response', response) 30 $('div#joblistid').html(response); 31 } 32 }); 33 }); 34 35 36 37 }); 38}(jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.