posabsolute/jQuery-Validation-Engine — Issue #239: modify extraDataDynamic param
Author: yjwf520199
Created: 2012-01-10 01:41:22+00:00
State: open

if (extraDataDynamic) {
var tmpData = [];
var domIds = String(extraDataDynamic).split(",");
for (var i = 0; i < domIds.length; i++) {
var id = domIds[i];

if (id.length) { //modify
var inputValue = field.closest("form").find("input[name='"+ id +"']").val(); //find byName
var keyValue = id.replace('#', '') + '=' + escape(inputValue);
tmpData.push(keyValue);
}
}
extraDataDynamic = tmpData.join("&");
} else {
extraDataDynamic = "";
}

I think this modiy better