How to make auto update of the sum?

Hello! There is a calculator. If the form is to enter the number, then the sum is counted only after pressing the button "+" or "-". You need to do to amount is automatically updated immediately.
The link to the calculator: ggggggggggg.komstroy.beget.tech/elementor-546
5cf3994495cd3022228970.png

Function:
calckNew_t function($this){
 var count = $this.parents("tr").find(".the count input.countP").val(),
 price = $this.parents("tr").find(".the count input.countP").attr("date-price"),
 newcount = "",
 summ = "",
 all_summ = 0;

 if( $this.hasClass("minus") ){
 newcount = (count*1)-1;
if(count==0){
 newcount = 0;
}
 }else if( $this.hasClass("plus") ){
 newcount = (count*1)+1;
 } else {
 newcount = parseInt($(this).val(), 10);
}
 $this.parents("tr").find(".the count input.countP").val(newcount);
 summ = (newcount*1)*(price*1);
 $this.parents("tr").find(".summ").text(summ);//.animateNumber({ number: summ });
allNew_t();
}
March 23rd 20 at 18:44
1 answer
March 23rd 20 at 18:46
@Waylon_Rice how to apply it in my function? - Bartholome_Labadie commented on March 23rd 20 at 18:49
@Bartholome_LabadieDo for me freelancin - Waylon_Rice commented on March 23rd 20 at 18:52
@Bartholome_Labadie, please @olegapp
Skype Waylon_Rice81 - Waylon_Rice commented on March 23rd 20 at 18:55

Find more questions by tags JavaScript