I have the code below. It works to begin with, but when i change the values it seems to keep the previous values in memory and doesnt do the multiplications i want it to. Can you suggest anything?
var output = $('#SquareMetres');
$('#input[type="text"]').keyup(function() {
var width = $('#width').val();
var height = parseFloat($(this).val());
output.text(height*width);
});
fiddle: http://jsfiddle.net/nRAhE/