Diiim,
$(function() {
$("#slid-er-1").on("input", function(event) {
var price = 47770 - this.value * 1500;
$(".okok").html(price <= 0 ? "Вы преодолели отметку" : "");
if(price < 0) {
price = 230 + this.value * 1500;
}
price = String(price).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1 ")
$("#amount_1_1").text(price + " ₽")
$(".num-bers").val(this.value);
});
});