CHANGE_GMC_POLCIY_TERMS_AGE_STORE_NULL_CHANEGE_THE_ISSUE : AADHAVAN
This commit is contained in:
parent
53e43fbaa7
commit
b8863cc564
@ -142,7 +142,7 @@
|
||||
<tr>
|
||||
<td style="width: 11%;"><span style="margin-right: 20px;">Spouse:</span></td>
|
||||
<td style="width: 11%;"><input type="checkbox" style="margin-right: 70px;"name="family_floaters[]" value="spouse" id="spouse"></td>
|
||||
<td style="width: 28%;" ><div class="spouse-age"><span style="margin-right: 20px;">Min Age:</span><input class="underline-input min_age" value="<?php echo (isset($spouse_min_age) && $spouse_min_age > 0) ? $spouse_min_age : '18'; ?>" style="width: 25%;;" type="number" name="spouse_min_age" id="spouse_min_age" oninput="this.value = this.value.replace(/\D/g, '').substring(0, 2)"></div></td>
|
||||
<td style="width: 28%;" ><div class="spouse-age"><span style="margin-right: 20px;">Min Age:</span><input class="underline-input min_age" value="<?php echo (isset($spouse_min_age) && $spouse_min_age > 0) ? $spouse_min_age : '18'; ?>" style="width: 25%;;" type="number" name="spouse_min_age" id="spouse_min_age" oninput="this.value = Math.max(this.value.replace(/\D/g, '').substring(0, 2),18)"></div></td>
|
||||
<td style="width: 28%;" ><div class="spouse-age"><span style="margin-right: 20px;">Max Age:</span><input class="underline-input max_age" value="<?php echo isset($spouse_max_age) ? $spouse_max_age : '60'; ?>" style="width: 25%;;" type="number" name="spouse_max_age" id="spouse_max_age" oninput="this.value = this.value.replace(/\D/g, '').substring(0, 2)"></div></td>
|
||||
</tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr>
|
||||
<tr>
|
||||
@ -1040,8 +1040,8 @@
|
||||
|
||||
if ($('#spouse').prop('checked')) {
|
||||
$('.spouse-age').css('display','');
|
||||
$('#spouse_min_age').val(18);
|
||||
$('#spouse_max_age').val(60);
|
||||
// $('#spouse_min_age').val(18);
|
||||
// $('#spouse_max_age').val(60);
|
||||
|
||||
} else {
|
||||
$('.spouse-age').css('display','none');
|
||||
@ -1256,10 +1256,10 @@
|
||||
$('#spouse').change(function () {
|
||||
if ($(this).prop('checked')) {
|
||||
$('.spouse-age').css('display','');
|
||||
if($('#spouse_min_age').val() < 0 || $('#spouse_min_age').val() == '' ){
|
||||
if($('#spouse_min_age').val() < 17 || $('#spouse_min_age').val() == '' ){
|
||||
$('#spouse_min_age').val(18);
|
||||
}
|
||||
if($('#spouse_max_age').val() < 0 || $('#spouse_max_age').val() == '' ){
|
||||
if($('#spouse_max_age').val() < 17 || $('#spouse_max_age').val() == '' ){
|
||||
$('#spouse_max_age').val(60);
|
||||
}
|
||||
}else{
|
||||
@ -1275,7 +1275,7 @@
|
||||
if($('#child_min_age').val() < 0 || $('#child_min_age').val() == '' ){
|
||||
$('#child_min_age').val(0);
|
||||
}
|
||||
if($('#child_max_age').val() < 0 || $('#child_max_age').val() == '' ){
|
||||
if($('#child_max_age').val() < 24 || $('#child_max_age').val() == '' ){
|
||||
$('#child_max_age').val(25);
|
||||
}
|
||||
}else{
|
||||
@ -1289,6 +1289,13 @@
|
||||
var family_floaters = $(this).val();
|
||||
if($('#family_floaters').val() != 0){
|
||||
$('.other-member-age').css('display','');
|
||||
if($('#other_member_min_age').val() < 17 || $('#other_member_min_age').val() == '' ){
|
||||
$('#other_member_min_age').val(18);
|
||||
}
|
||||
if($('#other_member_max_age').val() < 79 || $('#other_member_max_age').val() == '' ){
|
||||
$('#other_member_max_age').val(60);
|
||||
}
|
||||
|
||||
}else{
|
||||
$('.other-member-age').css('display','none');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user