I want to add to number to each other with javascript but it do as string:
function preOrderBook() {
var num = $('#num').val();
var cityPrice = $("#city").val();
var disP = (num * (29000 + cityPrice));
$("#result").html("هزینه خرید شما:" + disP);
}
disP is int value


Sign In
Create Account


Back to top









