0

Math Operations with input data

Hi there I hope that you all are doing fine. I want to code a process in my website with html. the first question for me is how to get 2 data (float input such as C++) from a user of my website, then multiplying it with 2 others (would be an input or a constant)

12th Mar 2017, 9:41 AM
Hamidreza Azarshab
Hamidreza Azarshab - avatar
2 Antworten
+ 17
put 2 <input type="number"> in html page and grab their data like : <input type="number" onchange="alert(document.getElementsByTagName('input')[0].value)" placeholder="input number">
12th Mar 2017, 10:08 AM
Valen.H. ~
Valen.H. ~ - avatar
0
Thanks that was beautiful
15th Mar 2017, 2:52 AM
Hamidreza Azarshab
Hamidreza Azarshab - avatar