$('input[name=sameKTP]').change(function() { if($('input[name="sameKTP"]').is(':checked')) { $(this).prop('checked',true); $('#domcAddressDataSubmit').val($('#ktpAddressDataSubmit').val()); $('#domcStateId').val($('#ktpStateId').val()); $('#domcCityId').val($('#ktpCityId').val()); $('#domcDistrictId').val($('#ktpDistrictId').val()); $('#domcSubDistrictId').val($('#ktpSubDistrictId ').val()); $('#domcRtDataSubmit').val($('#ktpRtDataSubmit').val()); $('#domcRwDataSubmit').val($('#ktpRwDataSubmit').val()); } else { $(this).prop('checked',false); $('#domcAddressDataSubmit').val(''); $('#domcStateId').val(''); $('#domcCityId').val(''); $('#domcDistrictId').val(''); $('#domcSubDistrictId').val(''); $('#domcRtDataSubmit').val(''); $('#domcRwDataSubmit').val(''); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)