Penentuan Skema Kerja Sama dan Persyaratan
$(document).ready(function(){
$("#zero").change(function(){
$("#daftar-berkas").css({"display": ""});
var zero_val = $("#zero").val();
if (zero_val == 'a') {
$("#aa_").css({"display": ""});
$("#bb_").css({"display": "none"}); $("#bb").val(""); $("#cc_").css({"display": "none"}); $("#cc").val("");
$("#form-pengabmas").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#aaaa_").css({"display": "none"}); $("#aaaa").val("");
$("#aa").change(function(){ var aa_val = $("#aa").val(); if (aa_val == 'aa1' || aa_val == 'aa2' || aa_val == 'aa4') { // Pengabmas + nested $("#form-pengabmas").css({"display": ""});
$("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#aaaa_").css({"display": ""});$("#aaaa").val(""); $("#aaaa").change(function(){ var aaaa_val = $("#aaaa").val(); console.log(aaaa_val); if (aaaa_val == 'aaaa1') { // pengabmas + nested $("#form-pengabmas").css({"display": ""}); $("#form-nested").css({"display": ""}); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); }else if(aaaa_val == 'aaaa2'){ // pengabmas saja $("#form-pengabmas").css({"display": ""}); $("#form-nested").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); } });
}else if(aa_val == 'aa3') { $("#aaa_").css({"display": ""}); $("#form-pengabmas").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#aaaa_").css({"display": "none"}); $("#aaaa").val(""); $("#form-nested").css({"display": "none"});
$("#aaa").change(function(){ var aaa_val = $("#aaa").val(); $("#aaaa").val(""); // pengabmas + agregat if (aaa_val == 'aaa1') { $("#form-pengabmas").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-sekunder").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#aaaa_").css({"display": ""}); $("#aaaa").change(function(){ var aaaa_val = $("#aaaa").val(); if (aaaa_val == 'aaaa1') { // pengabmas + agregat + nested $("#form-pengabmas").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-nested").css({"display": ""}); $("#form-sekunder").css({"display": "none"}); }else if (aaaa_val == 'aaaa2'){ // pengabmas + agregat $("#form-pengabmas").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-nested").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); } });
// pengabmas + sekunder }else if (aaa_val == 'aaa2') { $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-agregat").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#aaaa_").css({"display": ""}); $("#aaaa").change(function(){ var aaaa_val = $("#aaaa").val(); if (aaaa_val == 'aaaa1') { // pengabmas + sekunder + nested $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-nested").css({"display": ""}); $("#form-agregat").css({"display": "none"}); }else if (aaaa_val == 'aaaa2'){ // pengabmas + sekunder $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-nested").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); } });
// pengabmas + agregat + sekunder }else if (aaa_val == 'aaa3') { $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-nested").css({"display": "none"});
$("#aaaa_").css({"display": ""}); $("#aaaa").change(function(){ var aaaa_val = $("#aaaa").val(); if (aaaa_val == 'aaaa1') { // pengabmas + agregat + sekunder + nested $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-nested").css({"display": ""}); }else if (aaaa_val == 'aaaa2'){ // pengabmas + agregat + sekunder $("#form-pengabmas").css({"display": ""}); $("#form-sekunder").css({"display": ""}); $("#form-agregat").css({"display": ""}); $("#form-nested").css({"display": "none"}); } }); }
});
} });
}else if (zero_val == 'b') {
$("#bb_").css({"display": ""});
$("#aa_").css({"display": "none"}); $("#aa").val(""); $("#cc_").css({"display": "none"}); $("#cc").val("");
$("#form-pengabmas").css({"display": "none"}); $("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#form-pengabmas").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-pengabmas").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#aaaa_").css({"display": "none"}); $("#aaaa").val(""); $("#form-nested").css({"display": "none"}); $("#form-sekunder").css({"display": "none"});
$("#bb").change(function(){ var bb_val = $("#bb").val(); if (bb_val == 'bb2') { // Sekunder $("#form-sekunder").css({"display": ""}); $("#form-nested").css({"display": "none"});
}else if (bb_val == 'bb1') { $("#form-sekunder").css({"display": "none"}); $("#form-pengabmas").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-nested").css({"display": "none"}); $("#zero").val("c");
$("#cc_").css({"display": ""}); $("#aa_").css({"display": "none"}); $("#aa").val(""); $("#bb_").css({"display": "none"}); $("#bb").val(""); $("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#aaaa_").css({"display": "none"}); $("#aaaa").val("");
$("#cc").change(function(){ var cc_val = $("#cc").val(); if (cc_val == 'cc1') { // Nested + sekunder $("#form-nested").css({"display": ""}); $("#form-sekunder").css({"display": ""});
}else if(cc_val == 'cc2'){ // Nested $("#form-nested").css({"display": ""}); $("#form-sekunder").css({"display": "none"});
} });
} });
}else if (zero_val == 'c') {
$("#cc_").css({"display": ""}); $("#cc").val("");
$("#aa_").css({"display": "none"}); $("#aa").val(""); $("#bb_").css({"display": "none"}); $("#bb").val(""); $("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#aaaa_").css({"display": "none"}); $("#aaaa").val("");
$("#form-pengabmas").css({"display": "none"}); $("#form-agregat").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#cc").change(function(){ var cc_val = $("#cc").val(); if (cc_val == 'cc1') { // Nested + sekunder $("#form-nested").css({"display": ""}); $("#form-sekunder").css({"display": ""});
}else if(cc_val == 'cc2'){ // Nested $("#form-nested").css({"display": ""}); $("#form-sekunder").css({"display": "none"});
} });
}else if (zero_val == 'd') {
$("#form-agregat").css({"display": ""}); $("#form-pengabmas").css({"display": "none"}); $("#form-sekunder").css({"display": "none"}); $("#form-nested").css({"display": "none"});
$("#aa_").css({"display": "none"}); $("#aa").val(""); $("#bb_").css({"display": "none"}); $("#bb").val(""); $("#cc_").css({"display": "none"}); $("#cc").val(""); $("#aaa_").css({"display": "none"}); $("#aaa").val(""); $("#aaaa_").css({"display": "none"}); $("#aaaa").val("");
} }); });