first, when not filling the fields, and click the create button, it will validate the fields.
after filling the fields, and click the create button, it is not responding.
I clarify my question. I have active form, i called a popup modal to show information (contain gridview) and select the row tobe loaded to the active form page. after loaded the information to active form page, the submit button won’t work/not responding.
Please advise me. thanks before.
code that is loaded into modal and return view to active form
$(document).on('click', '.select-row', function(){
// get id from custom button
var id = $(this).attr('data-id');
$.get('../pengiriman-produksi/get-data', {id : id}, function(data){
$('#penerimaanproduksi-ref_id').val(id);
$('#view-pengiriman').html(data);
$('#penerimaanproduksi-bruto').focus();
});
$('#modalPengiriman').modal('hide');
});
The pjax loads more html, which conflicts with the id from the form. The form has id w0 and some content from the pjax has same id.
Set the activeform id manually.