Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to add two number using jqueryu

var a=parseInt($("#d1").val());
var b=parseInt($("#d2").val());
var sum=a+b;
alert($(sum));
Comment

add two numbers in jquery

$(document).ready(function(){
    $("input").focus(function(){
      var fee = parseInt($("#fee").val());
      var installments = parseInt($("#installments").val());

      $("#installment_fee").val(fee/installments);
    });
    $("input").blur(function(){
      var fee = parseInt($("#fee").val());
      var installments = parseInt($("#installments").val());

      $("#installment_fee").val(fee/installments);
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: angular read config from json 
Javascript :: innertext data form js 
Javascript :: preview image before upload reactjs 
Javascript :: js password check 
Javascript :: script src= https//kit.fontawesome.com/a81368914c.js /script 
Javascript :: js select last item in html list query selector 
Javascript :: express js delete request 
Javascript :: hourglasses js 
Javascript :: javascript scroll tracker 
Javascript :: how to auto refresh page in javascript 
Javascript :: React 18 to 17 
Javascript :: moment localization 
Javascript :: js months ago 
Javascript :: no special characters express validator 
Javascript :: iterate through object javascript 
Javascript :: bodyparser express deprecated 
Javascript :: lodash update object by id in array 
Javascript :: how to get the all input element id value 
Javascript :: javascript copy items into another array 
Javascript :: javascript fore each break example 
Javascript :: detect adblock javascript 
Javascript :: js === 
Javascript :: professional react projects 
Javascript :: how to create node js server 
Javascript :: external script in react 
Javascript :: save console log to file nodejs 
Javascript :: init select2 jquery 
Javascript :: google gapi auth2 get current token 
Javascript :: js add multiple element to document 
Javascript :: js while continue 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =