|
@@ -287,6 +287,20 @@ $(function () {
|
|
|
//
|
|
|
// });
|
|
|
|
|
|
+ $("#certificateType").change(function (e) {
|
|
|
+ if ($("#certificateType").val() === '99') {
|
|
|
+ let monthStr = (new Date().getMonth() + 1).length === 1 ? ('0'+(new Date().getMonth() + 1)) : (new Date().getMonth() + 1)
|
|
|
+ let currentDate = new Date().getFullYear() + '-' + monthStr + '-' + new Date().getDate()
|
|
|
+ $("#birthDay").val(currentDate)
|
|
|
+ $("#age").val(0);
|
|
|
+ $("#ageDetail").val(0);
|
|
|
+ $("#ageDetail").blur();
|
|
|
+ $("#gender").selectpicker('val', "0");
|
|
|
+ $("#gender").selectpicker('refresh');
|
|
|
+ $("#gender").blur();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
$("#birthDay").change(function (e) {
|
|
|
setAge();
|
|
|
$("#age").blur();
|