jquery replaceWith problem
Posted on 2010-11-10
(i am using jquery-1.3.2.min.jas
i am also using microsoft mvc )
I have one input text box - when i add a integer value to it - that value is ran against a simple calculation then inserted into a label.
This works fine the first time - but when i update the textbox value - the new calculated value is not inserted into the label - the old calculation remains.
However i have established (via an alert) that the change textbox event is firing - and the updated value is being re-calculated - but the insert is not happening.
here is my code:
//do my calculation - then the alert fires with the updated value
alert('my new calculation' + myCalculatedValue);
//but the value on the screen does not change from the first time the code is run
can anyone help?