This is jQuery code while button click the for loop is not working in dialog div submit date button please some one help me friends. . .
$("#dialog-form").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Submit Date": function () {
for (var j = 1; j <= MGDval; j++) {
alert($('S' + j).val());
}
$(this).dialog("close");
},
Cancel: function () {
$(this).dialog("close");
}
},
close: function () {
$(this).dialog("close");
}
});