fix
This commit is contained in:
@@ -105,10 +105,50 @@
|
||||
.find("input[type=checkbox], input[type=radio]")
|
||||
.prop("checked", "")
|
||||
.end();
|
||||
|
||||
|
||||
})
|
||||
|
||||
function funcpermohonan(){
|
||||
$('#permohonanform').submit();
|
||||
|
||||
let amaun = $('#jumlahmohon').val();
|
||||
// let tarikh = $('#tarikhmohon').val();
|
||||
let jenis = $('#radwang:checked').val();
|
||||
let petibesi = $('#bakipetibesi').val();
|
||||
let outstanding = $('#outstanding').val();
|
||||
|
||||
let boolamaun = false;let booljenis = false;
|
||||
|
||||
if(amaun === ''){
|
||||
$("#erroramaun").show();
|
||||
// $("[name='erroramaun']").text("*Isikan amaun dalam input!");
|
||||
$("[name='jumlahmohon']").addClass('is-invalid');
|
||||
}
|
||||
|
||||
if(!jenis)
|
||||
{
|
||||
$("#pilihper").show();
|
||||
|
||||
booljenis = true;
|
||||
}else{
|
||||
$("pilihper").hide();
|
||||
|
||||
booljenis = false;
|
||||
}
|
||||
|
||||
if(boolamaun === false && booljenis === false)
|
||||
{
|
||||
$("#terima_permohonan").prop('disabled', true);
|
||||
$('#permohonanform').submit();
|
||||
|
||||
return true;
|
||||
}else{
|
||||
|
||||
$("#terima_permohonan").prop('disabled', false);
|
||||
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('click', '#btnterima', function(e) {
|
||||
|
||||
Reference in New Issue
Block a user