$(document).ready(function() { // Open PDF links in a new tab $(document).on('click', 'a[href$=".pdf"]', function() { $(this).attr('target', "_blank"); }); }); School Lunch Information and Payments