(mvc) getFormData issue when selecting multiple options

This commit is contained in:
Ad Schellevis 2015-06-26 18:26:03 +02:00
parent f1563de1ba
commit 5bf6420b78

View File

@ -61,7 +61,7 @@ function getFormData(parent) {
sourceNode.children().each(function(index){
if ($(this).prop("selected")){
if (tmp_str != "") tmp_str = tmp_str + ",";
tmp_str = tmp_str + sourceNode.val();
tmp_str = tmp_str + $(this).val();
}
});
node[keypart] = tmp_str;