Revision: 51950
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 8, 2011 05:44 by cpres
Initial Code
jQuery(".price:contains('\uFFE5')").html(jQuery(".price").html().replace(".00", ""));
Initial URL
Initial Description
Working on an ecommerce site I found out from our Japanese distrubutors that they don't have a decimal for the currency since yen doesn't deal in change. 1 yen is a fraction of a cent anyway! This code looks for the Yen since within a <span></span> and if it has the yen which is uFFE5 to a browser, it replace the .00 with nothing.
Initial Title
Take out decimal for Yen Currency
Initial Tags
regex, replace, jquery
Initial Language
jQuery