Hi Sir, Mam,
I would like to ask how can I preview the form fields like input text array, i.e text_name[] using jquery Dialog or any other
javascript function?. I used the code below AND IT ONLY DISPLAYS THE last record in array. I want to preview the data of a forms before submit to store records in database.
for (var count = 0; count < input_array.length; count++) {
var action_no = input_array[count];
var text_section1_target1_tab1 = '
| No. | ' +A | ' +B | ' +C | ' +D | ' +REMARKS | ' +
|---|---|---|---|---|---|
| ' + action_no.value + ' | ' +Action1 | ' +1 | ' +1 | ' +D | ' +OK | ' +
}
var data = text_section1_target1_tab1;
$('#preview_data').html('');
$('#preview_data').append(data);
$('#preview_data').dialog({
resizable: false,
width:1000,
height:1024,
modal: true,
buttons: {
'Submit': function() {
//submit the form
$(this).dialog("close");
return 0;
},
Cancel: function() {
$(this).dialog("close");
return 0;
}
}
});
Any help much appreciated.
Thank you.
Rodel
Mohammad HussainPosted Aug 29, 2023, 7:56 AM
Amit MohantyPosted Aug 29, 2023, 5:47 AM
If you want to show all data in one table format:
Amit MohantyPosted Aug 29, 2023, 5:42 AM