function select_user(borrowernumber, borrower) { var suggested = ''; suggested += ''; suggested += borrower.surname + ', ' + borrower.firstname + ' (' + borrower.cardnumber + ')'; suggested += ' '; suggested += borrower.branchname + ' (' + borrower.category_description + ')'; $("#tdsuggestedby").html(suggested); return 0; } $(document).ready(function(){ $('body').on('click', '#suggester_search', function(e) { e.preventDefault(); var newin = window.open('suggester_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); }); });