Skip to content
Advertisement

Changing the value of input-box with respect of another input-box?

I am doing something wrong.

html:

JavaScript

js:

JavaScript

http://jsfiddle.net/nwxtrqjb/

Advertisement

Answer

There you go, it is working now. As mentioned by Alon, you were comparing the element itself (#quantc) instead of its value

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement