>

Jetstar(ジェットスター・ジャパン)の感想・口コミ

`).attr({name: `child_age_${y+1}`, class: `-select child_age_${y+1}`}).val(""); $(".child_age_select").append(text,input); $('#on_board_child_num, #child_cnt').val(++y); } if (n+y === 6) { $(".child_up").css("opacity",".3"); $(".adult_up").css("opacity",".3"); } if(n+y < 6) { $(".child_up").css("opacity","1"); } //子供合計1以上の場合 if (y > 0) { $(".child_down").css("opacity","1"); } $("#num_of_people").val(`大人${n}、子供${y}`); }); $('.child_down').on('click', function(){ if (y >= 1) { $('#on_board_child_num, #child_cnt').val(--y); } $(".child_age_"+(y+1)).remove(); if (y === 0) { $(".child_down").css("opacity",".3"); $("#js-btnSearchTicket").prop("disabled", false); } if(n+y < 6) { $(".child_up").css("opacity","1"); $(".adult_up").css("opacity","1"); } $("#num_of_people").val(`大人${n}、子供${y}`); let emptyCnt = 0; $('.-child_num').each(function (e) { if ($(this).is(':visible') && $(this).val() === '') { emptyCnt++; } }); let submit = emptyCnt > 0 ? false : true; $('#js-btnSearchTicket').prop('disabled', !submit); }); // 検索BOX const is_checked = $('#oneway').prop('checked'); if (is_checked) { $(".common_search__ctrl__date__arrival").hide(); $('.arr_date1').attr('disabled', true); $('.arr_date2').attr('disabled', true); $('.arr_date3').attr('disabled', true); $(".common_search__ctrl__date__departure").css('width', '301px'); $("input.datepicker").css('width', '301px'); } $('#oneway').click(function(){ $(".common_search__ctrl__date__arrival").hide(); $('.arr_date1').attr('disabled', true); $('.arr_date2').attr('disabled', true); $('.arr_date3').attr('disabled', true); $(".common_search__ctrl__date__departure").css('border-radius', '3px'); $('.calender search_dep-select').css('border-radius', '3px'); $("#js-DP").css('border-radius', '3px'); $(".common_search__ctrl__date__departure").css('width', '301px'); $("input.datepicker").css('width', '301px'); }); $('#roundtrip').click(function(){ $(".common_search__ctrl__date__arrival").show(); $('.arr_date1').attr('disabled', false); $('.arr_date2').attr('disabled', false); $('.arr_date3').attr('disabled', false); $(".common_search__ctrl__date__departure").css('border-radius', '3px 0px 0px 3px'); $('.calender search_dep-select').css('border-radius', '3px 0px 0px 3px'); $("#js-DP").css('border-radius', '3px 0px 0px 3px'); $(".common_search__ctrl__date__departure").css('width', '150px'); $("input.datepicker").css('width', '150px'); }); // 航空会社縛りラジオ if ($('input[name=airline_radio]:checked').val() !== '') { const align_id = $('input[name=airline_radio]:checked').val(); $('#airline_id').val(align_id); } $('.js-airline_chk').on('click', function(e) { const align_id = $(this).val(); $('#airline_id').val(align_id); }); // 逆区間ボタン $('#set_reverse').on('click', function() { const depSelect = $('select[name="departure_airport_id"]'); const depSelectVal = depSelect.val(); const arrSelect = $('select[name="arrival_airport_id"]'); const arrSelectVal = arrSelect.val(); if(depSelectVal.length > 0 && arrSelectVal.length > 0) { depSelect.val(arrSelectVal).trigger("change"); arrSelect.val(depSelectVal).trigger("change"); } }); //通貨変換用の変数セット const currency_type = "JPY"; const rate = 1; const decimal_point = 0; const type = 3; const short_unit = "¥"; }); >