so i have this line of code in my html
<td class="product-price">
<span class="amount" id="price">3915.00</span>
</td>
how can i that number "3915.00" in my javascript as an integer?
<script>
function myFunction()
{
var priceStr = document.getElementById('price').value;
var priceInt = parseInt(price);
}
</script>
can i do it this way? or are there any alternatives?