문제

Im looking for function that will allow me to replace all dollar symbols within a div to "CHF" (another currency). The reason is that the currency symbol is hardcoded and it should be replaced.

Is there a simple way of doing this?

Many thanks in advance.

도움이 되었습니까?

해결책

jQuery('div').each(function(i){ jQuery(this).text(jQuery(this).text().replace('$','CHF')) })
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top