I've a very simple question, yet still couldn't be able to figure out after trying couple of hours.
I'm adding another row to the conjoint choice task question with the following code:
var price1 = $('tr:nth-child(8) td:nth-child(2) div.level_text').html();
var value1 = parseInt(price1.replace('₺','').replace(',',''));
var euro1 = Math.round(value1 / 7.8);
$('tr:nth-child(8) td:nth-child(2) div.level_text').html(price1+"<br><br>Döviz Karşılığı: ("+euro1+"€)")
Here, I'm trying to show to EUR value of TRY prices in the extra row mentioned above. To do that, first i eliminate TRY symbol (₺) and comma (,) divide the price with the exchange rate. Then, I want to show the price with comma. For example with this code it shows up €22345, but I want it to be seen as €22,345.
Would you please help me on that?