‘; $(‘#divMultiCityFlights’).append(str); FillNext(“txtAirTo”, 1, “hidtxtToCity”); } setupATSG(); } $(“#rbAirRT”).on(‘click’, function (e) { $(“#returnRow”).show(); resetMultiCityFunction(); }) $(“#rbAirOW”).on(‘click’, function (e) { $(“#returnRow”).hide(); resetMultiCityFunction(); }) $(“#btnAddAnotherFlight”).on(‘click’, function (e) { var FlightCount = $(“#divMultiCityFlights”).find(“.mc-flight-sec-main”).length + 1; var str = ” + ” + ” + ‘

Flight ‘ + (FlightCount + 1) + ‘

‘ + ” + ” + ”; $(‘#divMultiCityFlights’).append(str); $(“#divMultiCityFlights .mc-flight-sec-main”).each(function () { if ($(this).is(‘:last-child’)) { $(this).find(“.mc-flight-sec-head”).append(‘‘); } else { $(this).find(“.mc-flight-close”).remove(); } }); FillNext(“txtAirTo” + FlightCount, FlightCount, “hidtxtToCity” + FlightCount); setupATSG(); }) function resetMultiCityFunction() { $(“.mc-flight-sec-head”).hide(); $(“.mc-add-flight”).hide(); $(“#divMultiCityFlights”).hide(); } $(document).on(‘click’, ‘#divDeleteFlight’, function (e) { $(“#divMultiCityFlights .mc-flight-sec-main”).each(function () { if ($(this).is(‘:last-child’)) { $(this).remove(); } }); var FlightCount = $(“#divMultiCityFlights”).find(“.mc-flight-sec-main”).length; if (FlightCount !== 1) { $(“#divMultiCityFlights .mc-flight-sec-main:last-child”) .find(“.mc-flight-sec-head”) .append(‘‘); } }); });

Get $100 Cashback

Call Us at
1-800-847-1963
Mon – Fri: 8 AM to 9 PM EST
Sat – Sun: 9 AM to 6 PM EST
or Email us cs@farebuzz.com *Coupon code is valid for Business & First Class Tickets traveling from the US to any International destination booked from Sep 1, 2020 to Sep 7, 2020 11:59PM PST. Applies to bookings for 2+ travelers. Discount valid on a minimum booking value of $1000. Coupon is cash back, not instant discount. A check will be mailed to the customer after the flight has been booked and payment is complete.
Close [x]

Source