$( "#printOrder, #pdfOrder" ).button({ label :$(this)[0].id == 'printOrder' ? 'Print' : 'PDF' //does not work })