How to make these divisions and get different results for each division. The result comes out just right for the first price and in others the result is all the same: 200.
$(document).ready(function() {
$(".ecwid").click(function() {
var x = parseInt($('span.ecwid-productBrowser-price-value')[0].innerHTML.replace(',', '.').substr(2))
$("span").append("<p>3x de " + x / 3 + "</p>")
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button class='ecwid'>Teste</button><br><br>
<span class='ecwid-productBrowser-price-value'>R$600,00</span>
<hr>
<span class='ecwid-productBrowser-price-value'>R$800,00</span>
<hr>
<span class='ecwid-productBrowser-price-value'>R$700,00</span>
<hr>
<span class='ecwid-productBrowser-price-value'>R$500,00</span>
<hr>