A Cup of JAVA Coffee with Neeraj Srivastava (NeeSri)
Learn Java Magic
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment