I am trying to accomplish simple calculation on few variables. I need to take the value from the
<td class="productprice">
and multiply it by the value from the
<input type="text" class="quantityBox" value="1"/>
And, I am using this piece of code to see if the value change to recalculate.
$(".quantityBox").change(function(){
alert("Asdasd");
});
And nothing happens. I am expecting the alert box to appear for now, so I’ll just be sure that the change works.
Any ideas? Thank you.
Bind the change function in document ready event.
Something like:
Note: I assume you are tabbing/moving out of the textbox to see if the change function is firing.