0

How to make web converter , kilogram to gram or kilometter to meter ? šŸ™

15th Jul 2022, 2:02 PM
Zulpakar
Zulpakar - avatar
6 Answers
+ 5
You just need to do the maths from user input and then use something like getElementById to update the webpage with the result. Do you have a code that isn't working? Please attach it here and someone can help.
15th Jul 2022, 2:11 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Infinity 21 You need to learn how to make textbox in html You need to learn JavaScript to calculate You need to learn how to get value from textbox using JavaScript. You need to learn how to call JavaScript function when clicking on button
16th Jul 2022, 6:04 AM
AĶ¢J
AĶ¢J - avatar
+ 1
1 kilogram = 1000 gram 1 kilometer = 1000 meter now make two input box 1 for kilo..... and 1 for in which you want to convert. now write javascript function and use above formula
15th Jul 2022, 4:11 PM
AĶ¢J
AĶ¢J - avatar
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <input placeholder="1 kilogram"> <input placeholder="result"> <button>cal</button> </body> </html>
15th Jul 2022, 10:44 PM
Zulpakar
Zulpakar - avatar
0
What can make code formula function ? šŸ™
15th Jul 2022, 10:45 PM
Zulpakar
Zulpakar - avatar
0
Thans ..I go to learn it...šŸ‘Œ
16th Jul 2022, 8:12 AM
Zulpakar
Zulpakar - avatar