Why is my blur event handler not firing?
问题 I've got this jQuery to update the total when amounts are entered into any of the five "amount" boxes: /* boxAmount1...boxAmount5 - when any of them change, update boxGrandTotal */ $(document).on("blur", '[id^="boxAmount"]', function (e) { alert('in the boxamount blur handler'); var amount1 = $('[id$=boxAmount1]').val() != '' ? parseInt($('[id$=boxAmount1]').val()) : 0; // jakecigar's idea: add this just in case a user enters something other than a number: if ($.isNaN(amount1) amount1=0; var