0
How to make web converter , kilogram to gram or kilometter to meter ? 🙏
6 Respuestas
+ 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.
+ 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
+ 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
0
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<input placeholder="1 kilogram">
<input placeholder="result">
<button>cal</button>
</body>
</html>
0
What can make code formula function ? 🙏
0
Thans ..I go to learn it...👌