[ad_1]
document.getElementById returns the HTML element (an input, in your case), not its value. Try this instead:
x = document.getElementById("a").value;
1
[ad_2]
solved javascript: Could not add two text inputs
[ad_1]
document.getElementById returns the HTML element (an input, in your case), not its value. Try this instead:
x = document.getElementById("a").value;
1
[ad_2]
solved javascript: Could not add two text inputs