/ Published in: jQuery
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 and if it has the yen which is uFFE5 to a browser, it replace the .00 with nothing.
This code looks for the Yen since within a and if it has the yen which is uFFE5 to a browser, it replace the .00 with nothing.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery(".price:contains('\uFFE5')").html(jQuery(".price").html().replace(".00", ""));