function getFormData(eId) {
var inData = new Array();
$("#" + eId).find("input").each(function () {
if ($(this).attr("real-value") != null) {
inData.push({"name": $(this).attr("name"), "value": $(this).attr("real-value").trim()});
} else {
inData.push({"name": $(this).attr("name"), "value": $(this).val().trim()});
}
});
$("#" + eId).find("select").each(function () {
inData.push({"name": $(this).attr("name"), "value": $(this).val().trim()});
});
$("#" + eId).find("textarea").each(function () {
inData.push({"name": $(this).attr("name"), "value": $(this).val().trim()});
});
return inData;
}
function getFormData(eId) {
var inData={};
$("#" + eId).find("input").each(function() {
if ($(this).attr("real-value") != null) {
inData[$(this).attr("name")] = $(this).attr("real-value").trim();
} else {
inData[$(this).attr("name")] = $(this).val().trim();
}
});
$("#" + eId).find("select").each(function() {
inData[$(this).attr("name")] = $(this).val();
});
$("#" + eId).find("textarea").each(function() {
inData[$(this).attr("name")] = $(this).val().trim();
});
return inData;
};