mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Fixed delegate bug for dynamic-totals demo. Fixes #51
This commit is contained in:
committed by
Jörn Zaefferer
parent
be37b6aba8
commit
02b10a6568
@@ -44,7 +44,7 @@ $().ready(function() {
|
|||||||
$("#add").click(addRow);
|
$("#add").click(addRow);
|
||||||
|
|
||||||
// check keyup on quantity inputs to update totals field
|
// check keyup on quantity inputs to update totals field
|
||||||
$("#orderform").delegate("keyup", "input.quantity", function(event) {
|
$("#orderform").validateDelegate("input.quantity", "keyup", function(event) {
|
||||||
var totals = 0;
|
var totals = 0;
|
||||||
$("#orderitems input.quantity").each(function() {
|
$("#orderitems input.quantity").each(function() {
|
||||||
totals += +this.value;
|
totals += +this.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user