Showing auto calculated values in Input field or text box on key up using html & js.

preview_player
Показать описание
Showing auto calculated values in Input field or text box on key up using html & js.
Рекомендации по теме
Комментарии
Автор

This is exactly what I have been searching for, but my use case is work related. I want to create a formula in which the user only enters 5 piece of info and using a simple formula it gives output. I don't know anything about coding or stuff but I can edit html as per my needs and I have done this in the past. Can you please give me this code so that I can make changes to incorporate it in my html. Thanks in advance

jetjitten
Автор

Nice! That's exactly what I need.

NewStreamLine
Автор

nice job ! i need to make calculation from 3 variables x1 x2 x3. What would be the code ? Thanks in advance

rene
Автор

Thank You for this simple code.
How can we make it to multiply or divide according to selection from a dropdown ?

nickzouein
Автор

Can you share the code? I'm a basic user of html and I've been trying to create a calculator very similar to yours where an input will calculate another by a specific factor and I can't get the calculating field to work so if I figured if I can start with your example, I can build the rest of the calculator. I just need the functionality to work.

Hernandezvideofilmaudio
Автор

thanks u.. work. but how to using 1+2=3

omchrist
Автор

Hi, what if i want to add or substract 2 different input text value but still using onkeyup

shensavagegaming
Автор

<script>
function mult(value) {
var x, y ;
x= 2 * value ;
x= 3 * value ;

= x ;
= y ;
</script>

<input type="text" onkeyup="mult(this.value);">
<input type="text" id="test" readonly>
<input type="text" id="test2" readonly>



not working

tapankarmakar
Автор

same ishko division k liye kya code likhna hoga sir

adityanandan
Автор

not working which js library need to be included????

tapankarmakar