$(document).ready(function() { $('[href="?m=tickets&p=submitticket"]').addClass('btn').addClass('btn-primary').addClass('btn-sm'); $('.no_tickets').removeClass('no_tickets').addClass('alert').addClass('alert-danger'); $('.ticket_admin_response > td:nth-child(2)').each(function(){ $(this).replaceWith(''+$(this).html()+''); }); $('.ticket_customer_response > td:nth-child(2)').each(function(){ $(this).replaceWith(''+$(this).html()+''); }); $('.ticket_closed > td:nth-child(2)').each(function(){ $(this).replaceWith(''+$(this).html()+''); }); });