开发者

change the $ sign to thai bhat in catalook in dnn

开发者 https://www.devze.com 2023-03-01 09:32 出处:网络
there is a default Dollar Sign before t开发者_StackOverflowhe every Price tag. i want to change this to Thai Bhat of thailand. How can i do it?Assuming your prices are contained within a span or a div

there is a default Dollar Sign before t开发者_StackOverflowhe every Price tag. i want to change this to Thai Bhat of thailand. How can i do it?


Assuming your prices are contained within a span or a div elements using a class such as:

<span class="pricetag">$100,00.00</span>

A simple fix is to use jQuery to replace $ sign with thai baht symbol.

$('.pricetag').text().replace('$', '฿');


I don't know how you are displaying the value you can achieve it by

NumberFormatInfo numinfo = CultureInfo.CreateSpecificCulture("th-TH").NumberFormat;
textbox.Text = yourvalue.ToString("c",numinfo);

All you need to do is refer the Thai culture when considering the value of Price.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号