I have this code and I want to show the price_final var with comma and currency
Here is my code:
$(document).ready(function() {
var prices = $('span.product_weight').text()
$("input").change(function() {
var price = '';
var quantity = parseInt($('input[name=quantity]').val());
console.log(quantity)
var price = prices.replace(/[^\d-]/g, '');
var price_final = price * quantity;
$('span.product_weight').html(price_final);
});
});