$(document).ready(function () { $('#statuscheckbox').click(function () { $('.pilihwaktu-x').prop('disabled', function(i, v) { return !v; }); }); }); $(".schoolname").flexdatalist({searchContain: true,searchIn: "name",data: "include/list-json.php?o=listsekolahan"}); $(".schoolmajor").flexdatalist({searchContain: true,searchIn: "name",data: "include/list-json.php?o=listjurusan"}); $(".typecompany").flexdatalist({searchContain: true,searchIn: "name",data: "include/list-json.php?o=listjenisperusahaan"}); $(".skillname").flexdatalist({searchContain: true,searchIn: "name",data: "include/list-json.php?o=listkeahlian"}); $(".language").flexdatalist({searchContain: true,searchIn: "name",data: "include/list-json.php?o=listbahasa"}); $('.input-group.date').datepicker({ format: "yyyy-mm-dd", language: "id", autoclose: true }); $('.pilihwaktu').datepicker({ format: "MM yyyy", language: "id", autoclose: true, viewMode: "months", minViewMode: "months" }); $(document).ready(function(){ var i=0; $('#addschool').click(function(){ i++; $('#dynamic_field').append('
' +'
' +'
' +'' +'' +'
' +'
' +'' +'' +'' +'
' +'
' +'' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'
' +'
' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'' +'
' +' Masih dalam studi' +'
' +'
' +'' +'
' +'' +'
'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); }); $(document).ready(function(){ var i=0; $('#addwork').click(function(){ i++; $('#dynamic_field').append('
' +'
' +'
' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'' +'' +'' +'
' +'
' +'
' +'
' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'' +'
' +' Masih bekerja' +'
' +'
' +'' +'
' +'
' +'
' +'' +'' +'
' +'
' +'' +'
'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); }); $(document).ready(function(){ var i=1; $('#addskill').click(function(){ i++; $('#dynamic_field').append('
' +'
' +'
' +'' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'
' +'
' +'' +'' +'
' +'
' +'' +'
'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); }); $(document).ready(function(){ var i=1; $('#addlang').click(function(){ i++; $('#dynamic_field').append('
' +'
' +'
' +'' +'' +'' +'
' +'
' +'' +'' +'
' +'
' +'' +'
'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); }); $(document).ready(function(){ var i=1; $('#adddocument').click(function(){ i++; $('#dynamic_field').append('
' +'' +'
' +'
' +'
' +'' +'' +'
' +'
' +'
' +'' +'' +'
' +'
' +'' +'
'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); }); // Add the following code if you want the name of the file appear on select $(".custom-file-input").on("change", function() { var fileName = $(this).val().split("\\").pop(); $(this).siblings(".custom-file-label").addClass("selected").html(fileName); });