Question
How do I report the dynamic calculation of a difference b/n a constant and text entry?
I'd like to dynamically report to my survey taker the difference between a constant and a value they are entering into a textbox.
I'm asking them to report a desired salary into a textbox (e.g., 100000) and I'd like to report to them the difference between that entered value and a constant (e.g., 200000) in a dynamic fashion. Essentially, this would be similar to the Constant Sum function (with the dynamic updated as values are entered) but resulting from the difference between my constant and the value they are entering into the textbox.
I'm a Javascript novice, so I'm not sure how to tease it apart.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

and below is the code which is added in the question javascript.