$('.currency').each(function(){ $(this).html($(this).html().replace(".00","").replace(".25","").replace(".50","")); });