Monday, 26 December 2016

How to add and display value into other text field in JavaScript


A.  by using name


                                    See ,  var result= a+ b;
   It  wil be added as String as give result 1+1=11 not  2. So for adding  we should use like
     var result= + a+ + b;



See here result is 11

B.   by using id



No comments:

Post a Comment