I have an application where I have to perform a simple calculation where the price of each item * the amount. I am trying to figure out the best way to do it. I have a input type="number" and I have a item price. I need to update my input fied each time the value of the QTY field changes
$('#add1').click(function () {
var selected1 = ($('#produceList option:selected').index() - 1);
myItem1 = pdata[selected1];
$('#itembox').append('<div id="thep">' + '<p class = "product">' + myItem1.Name + ' ' + myItem1.Price + '</p>' + '<label for="howMAny">Qty:</label>' + '<input id="howMany" type="number" min="0" max="10" value="0">' + '<label for="thisMany">Price:</label>' + '<input type="text" id ="thisMany"readonly>' + '</div>');