Best Flight Deals from AUS to DEL on Oct 02, 2024
05:35 AM on Oct 02, 2024 AUS
2 Stops {JFK | AUH} | Trip Duration: 27 hr 30 min
07:35 PM on Oct 03, 2024 DEL
American Airlines 2287 | Etihad Airways 2 / 224
Book flights from AUS to DEL at 05:35 AM with Etihad Airways on Oct 02, 2024
$476.80
12:25 PM on Oct 02, 2024 AUS
2 Stops {JFK | AUH} | Trip Duration: 52 hr 20 min
03:15 AM on Oct 05, 2024 DEL
Flight 8251 operated by Major Airline Major Airline | Etihad Airways 2 / 218
Book flights from AUS to DEL at 12:25 PM with Etihad Airways on Oct 02, 2024
$558.96
08:05 AM on Oct 02, 2024 AUS
2 Stops {ORD | AUH} | Trip Duration: 32 hr 40 min
03:15 AM on Oct 04, 2024 DEL
American Airlines 1726 | Etihad Airways 10 / 218
Book flights from AUS to DEL at 08:05 AM with Etihad Airways on Oct 02, 2024
$638.70
12:25 PM on Oct 02, 2024 AUS
2 Stops {JFK | AUH} | Trip Duration: 33 hr 00 min
07:55 AM on Oct 04, 2024 DEL
Flight 8251 operated by Major Airline Major Airline | Etihad Airways 4 / 212
Book flights from AUS to DEL at 12:25 PM with Etihad Airways on Oct 02, 2024
$651.10
07:00 AM on Oct 02, 2024 AUS
1 Stop {ORD} | Trip Duration: 19 hr 15 min
12:45 PM on Oct 03, 2024 DEL
United Airlines 202 | Air India 126
Book flights from AUS to DEL at 07:00 AM with Air India on Oct 02, 2024
$652.70
07:00 AM on Oct 02, 2024 AUS
1 Stop {ORD} | Trip Duration: 19 hr 15 min
12:45 PM on Oct 03, 2024 DEL
United Airlines 202 | Air India 126
Book flights from AUS to DEL at 07:00 AM with Air India on Oct 02, 2024
$670.85
12:48 PM on Oct 02, 2024 AUS
1 Stop {ORD} | Trip Duration: 37 hr 27 min
12:45 PM on Oct 04, 2024 DEL
United Airlines 210 | Air India 126
Book flights from AUS to DEL at 12:48 PM with Air India on Oct 02, 2024
$684.98
12:48 PM on Oct 02, 2024 AUS
1 Stop {ORD} | Trip Duration: 37 hr 27 min
12:45 PM on Oct 04, 2024 DEL
United Airlines 210 | Air India 126
Book flights from AUS to DEL at 12:48 PM with Air India on Oct 02, 2024
$694.00
08:10 AM on Oct 02, 2024 AUS
2 Stops {LAX | DOH} | Trip Duration: 31 hr 15 min
01:55 AM on Oct 04, 2024 DEL
Flight 9386 operated by American Airlines Qatar Airways 9386 / 740 / 578
Book flights from AUS to DEL at 08:10 AM with Qatar Airways on Oct 02, 2024
$696.60
08:10 AM on Oct 02, 2024 AUS
2 Stops {LAX | DOH} | Trip Duration: 44 hr 20 min
03:00 PM on Oct 04, 2024 DEL
Flight 9386 operated by American Airlines | Flight 4790 operated by IndiGo Qatar Airways 9386 / 740 / 4790
Book flights from AUS to DEL at 08:10 AM with Qatar Airways on Oct 02, 2024
$701.10
Hurry! Only 4 seats left at this fare
06:00 AM on Oct 02, 2024 AUS
2 Stops {SEA | DOH} | Trip Duration: 34 hr 25 min
02:55 AM on Oct 04, 2024 DEL
Flight 4780 operated by IndiGo Alaska Airlines 595 | Qatar Airways 720 / 4780
Book flights from AUS to DEL at 06:00 AM with Qatar Airways on Oct 02, 2024
$729.50
02:10 PM on Oct 02, 2024 AUS
2 Stops {JFK | DOH} | Trip Duration: 32 hr 05 min
08:45 AM on Oct 04, 2024 DEL
Flight 9532 operated by American Airlines Qatar Airways 9532 / 702 / 570
Book flights from AUS to DEL at 02:10 PM with Qatar Airways on Oct 02, 2024
$735.00
Hurry! Only 5 seats left at this fare
08:37 AM on Oct 02, 2024 AUS
2 Stops {ORD | MUC} | Trip Duration: 28 hr 23 min
11:30 PM on Oct 03, 2024 DEL
Flight 7685 operated by United Airlines Lufthansa 7685 / 437 / 762
Book flights from AUS to DEL at 08:37 AM with Lufthansa on Oct 02, 2024
$744.80
03:40 PM on Oct 02, 2024 AUS
1 Stop {FRA} | Trip Duration: 22 hr 45 min
12:55 AM on Oct 04, 2024 DEL
Lufthansa 469 / 760
Book flights from AUS to DEL at 03:40 PM with Lufthansa on Oct 02, 2024
$758.70
12:25 PM on Oct 02, 2024 AUS
2 Stops {IAH | FRA} | Trip Duration: 26 hr 00 min
12:55 AM on Oct 04, 2024 DEL
Flight 8634 operated by MESA AIRLINES FOR UNITED EXPRESS FOR UNITED AIRLINES Lufthansa 8634 / 441 / 760
Book flights from AUS to DEL at 12:25 PM with Lufthansa on Oct 02, 2024
$763.20
03:40 PM on Oct 02, 2024 AUS
2 Stops {FRA | MUC} | Trip Duration: 21 hr 20 min
11:30 PM on Oct 03, 2024 DEL
Lufthansa 469 / 100 / 762
Book flights from AUS to DEL at 03:40 PM with Lufthansa on Oct 02, 2024
$779.20
06:00 PM on Oct 02, 2024 AUS
2 Stops {IAH | IST} | Trip Duration: 24 hr 20 min
04:50 AM on Oct 04, 2024 DEL
Flight 8897 operated by United Airlines Turkish Airlines 8897 / 34 / 716
Book flights from AUS to DEL at 06:00 PM with Turkish Airlines on Oct 02, 2024
$818.40
Hurry! Only 4 seats left at this fare
06:00 PM on Oct 02, 2024 AUS
2 Stops {IAH | IST} | Trip Duration: 24 hr 20 min
04:50 AM on Oct 04, 2024 DEL
Flight 8897 operated by United Airlines Turkish Airlines 8897 / 34 / 716
Book flights from AUS to DEL at 06:00 PM with Turkish Airlines on Oct 02, 2024
$824.90
Hurry! Only 4 seats left at this fare
06:00 PM on Oct 02, 2024 AUS
2 Stops {IAH | IST} | Trip Duration: 24 hr 35 min
05:05 AM on Oct 04, 2024 DEL
Flight 4651 operated by 6E/AIR INDIGO United Airlines 1326 | Turkish Airlines 34 / 4651
Book flights from AUS to DEL at 06:00 PM with Turkish Airlines on Oct 02, 2024
$926.00
Hurry! Only 4 seats left at this fare
06:00 PM on Oct 02, 2024 AUS
2 Stops {IAH | IST} | Trip Duration: 24 hr 35 min
05:05 AM on Oct 04, 2024 DEL
Flight 4651 operated by 6E/AIR INDIGO United Airlines 1326 | Turkish Airlines 34 / 4651
Book flights from AUS to DEL at 06:00 PM with Turkish Airlines on Oct 02, 2024
$944.35
Hurry! Only 4 seats left at this fare
05:20 PM on Oct 02, 2024 AUS
2 Stops {SFO | SIN} | Trip Duration: 40 hr 20 min
08:10 PM on Oct 04, 2024 DEL
Flight 1423 operated by Alaska Airlines Singapore Airlines 1423 / 33 / 406
Book flights from AUS to DEL at 05:20 PM with Singapore Airlines on Oct 02, 2024
$957.60
Hurry! Only 4 seats left at this fare
05:20 PM on Oct 02, 2024 AUS
2 Stops {SFO | SIN} | Trip Duration: 49 hr 50 min
05:40 AM on Oct 05, 2024 DEL
Flight 1423 operated by Alaska Airlines Singapore Airlines 1423 / 31 / 402
Book flights from AUS to DEL at 05:20 PM with Singapore Airlines on Oct 02, 2024
$966.10
Hurry! Only 4 seats left at this fare
04:54 PM on Oct 02, 2024 AUS
2 Stops {LAX | SIN} | Trip Duration: 40 hr 46 min
08:10 PM on Oct 04, 2024 DEL
Flight 1632 operated by United Airlines Singapore Airlines 1632 / 37 / 406
Book flights from AUS to DEL at 04:54 PM with Singapore Airlines on Oct 02, 2024
$977.60
06:20 AM on Oct 02, 2024 AUS
3 Stops {LAX | NRT | SIN} | Trip Duration: 36 hr 50 min
05:40 AM on Oct 04, 2024 DEL
Flight 1636 operated by United Airlines Singapore Airlines 1636 / 11 / 402
Book flights from AUS to DEL at 06:20 AM with Singapore Airlines on Oct 02, 2024
$1000.10
04:22 PM on Oct 02, 2024 AUS
2 Stops {IAH | DXB} | Trip Duration: 23 hr 53 min
02:45 AM on Oct 04, 2024 DEL
Flight 6009 operated by United Airlines Emirates 6009 / 212 / 512
Book flights from AUS to DEL at 04:22 PM with Emirates on Oct 02, 2024
$1048.50
Hurry! Only 0 seats left at this fare
12:25 PM on Oct 02, 2024 AUS
2 Stops {IAH | DXB} | Trip Duration: 27 hr 50 min
02:45 AM on Oct 04, 2024 DEL
Flight 6078 operated by MESA AIRLINES DBA UNITED EXPRESS United Airlines 6078 | Emirates 212 / 512
Book flights from AUS to DEL at 12:25 PM with Emirates on Oct 02, 2024
$1057.95
Hurry! Only 4 seats left at this fare
12:25 PM on Oct 02, 2024 AUS
2 Stops {IAH | DXB} | Trip Duration: 27 hr 50 min
02:45 AM on Oct 04, 2024 DEL
Flight 6078 operated by MESA AIRLINES DBA UNITED EXPRESS United Airlines 6078 | Emirates 212 / 512
Book flights from AUS to DEL at 12:25 PM with Emirates on Oct 02, 2024
$1096.60
Hurry! Only 4 seats left at this fare
12:48 PM on Oct 02, 2024 AUS
2 Stops {ORD | DXB} | Trip Duration: 27 hr 27 min
02:45 AM on Oct 04, 2024 DEL
United Airlines 210 | Emirates 236 / 512
Book flights from AUS to DEL at 12:48 PM with Emirates on Oct 02, 2024
$1338.40
Hurry! Only 4 seats left at this fare
06:15 PM on Oct 02, 2024 AUS
1 Stop {LHR} | Trip Duration: 27 hr 20 min
08:05 AM on Oct 04, 2024 DEL
British Airways 190 / 257
Book flights from AUS to DEL at 06:15 PM with British Airways on Oct 02, 2024
$1372.40
- Home
- North America
- US
- AUSTIN
- Flights from AUS to NEW DELHI
Cheapest Day to Book International Flights Online : AUS to DEL
Want to fly non-stop to DEL? We'll help you find your ideal route.
AUS 07:09 PM Aug 15, 2024
29 hr 46 min 1 Stop
DEL 11:25 AM Aug 17, 2024
DEL 03:55 AM Sep 15, 2024
29 hr 25 min 1 Stop
AUS 10:50 PM Sep 15, 2024
$1119.57
Found 18hrs ago
AUS 08:37 PM Aug 15, 2024
25 hr 38 min 2 Stops
DEL 08:45 AM Aug 17, 2024
DEL 05:00 PM Sep 15, 2024
30 hr 32 min 2 Stops
AUS 01:02 PM Sep 16, 2024
$1190.44
Found 20hrs ago
AUS 12:15 PM Aug 15, 2024
21 hr 40 min 1 Stop
DEL 08:25 PM Aug 16, 2024
DEL 07:10 AM Sep 15, 2024
41 hr 10 min 2 Stops
AUS 01:50 PM Sep 16, 2024
$1247.50
Found 20hrs ago
AUS 04:23 PM Aug 15, 2024
23 hr 52 min 2 Stops
DEL 02:45 AM Aug 17, 2024
DEL 09:50 PM Sep 15, 2024
34 hr 15 min 2 Stops
AUS 09:35 PM Sep 16, 2024
$1377.64
Found 18hrs ago
AUS 05:35 AM Oct 02, 2024
27 hr 30 min 2 Stops
DEL 07:35 PM Oct 03, 2024
$476.80
Found 18hrs ago
AUS 07:00 AM Oct 02, 2024
19 hr 15 min 1 Stop
DEL 12:45 PM Oct 03, 2024
$638.70
Found 20hrs ago
AUS 08:10 AM Oct 02, 2024
31 hr 15 min 2 Stops
DEL 01:55 AM Oct 04, 2024
$694.00
Found 20hrs ago
AUS 08:37 AM Oct 02, 2024
28 hr 23 min 2 Stops
DEL 11:30 PM Oct 03, 2024
$744.80
Found 18hrs ago
AUS 05:30 PM Jun 28, 2024
22 hr 50 min 2 Stops
LHR 10:20 PM Jun 29, 2024
LGW 04:00 PM Jul 06, 2024
32 hr 15 min 1 Stop
DEL 04:45 AM Jul 08, 2024
$1466.80
Found 18hrs ago
AUS 06:05 PM Jun 28, 2024
09 hr 30 min Non Stop
LHR 09:35 AM Jun 29, 2024
LHR 05:40 PM Jul 06, 2024
15 hr 55 min 1 Stop
DEL 02:05 PM Jul 07, 2024
$1487.40
Found 20hrs ago
AUS 05:16 PM Jun 28, 2024
30 hr 39 min 1 Stop
LHR 05:55 AM Jun 30, 2024
LHR 07:25 AM Jul 06, 2024
11 hr 35 min 1 Stop
DEL 11:30 PM Jul 06, 2024
$1683.68
Found 20hrs ago
AUS 06:05 PM Jun 28, 2024
09 hr 30 min Non Stop
LHR 09:35 AM Jun 29, 2024
LHR 10:25 AM Jul 06, 2024
08 hr 35 min Non Stop
DEL 11:30 PM Jul 06, 2024
$2150.40
Found 18hrs ago
Find the Cheapest Day for Flights from AUS to DEL
One-Way flights from AUS to DEL
Round Trip from AUS to DEL
Multi-City Flights from AUS to DEL
' + '
' + 'from: '+ ''+'$'+yLabels+'' + '
' + '
' } var oneWayOptions = { series: [{ name: 'from', data: oneWayPrices, }], //colors:['#a9e4d7','#00b595', '#E91E63'], colors: [function( {dataPointIndex, w, value}) { var dates = w.config.xaxis.categories[dataPointIndex]; return activeDateColor(dates,w,value); }], annotations: { points: [{ x: 'Mar', seriesIndex: 0, label: { borderColor: '#775DD0', offsetY: 0, style: { color: '#fff', background: '#775DD0', }, text: 'Bananas are good', } }] }, chart: { events: { dataPointSelection: function (event, chartContext, config) { var allLabelBars = document.querySelectorAll(".apexcharts-bar-area"); allLabelBars.forEach((x,c) =>{ allLabelBars[c].style.fill = '#00b595'; }) event.target.style.fill = `rgba(255, 116, 51)`; var dates = config.w.config.xaxis.categories[config.dataPointIndex]; var prices = config.w.config.series[0].data[config.dataPointIndex]; updatingDateValue(prices,dates,chartContext,config); }, dataPointMouseEnter: function (event, chartContext, config) { event.target.style.cursor ="pointer"; }, }, animations: { enabled: true, easing: 'easeinout', speed: 800, animateGradually: { enabled: true, delay: 150 }, dynamicAnimation: { enabled: true, speed: 350 } }, height: 350, type: "bar", //width: 600, toolbar: { show: false, } }, legend:{ show:false, }, plotOptions: { bar: { //colors:["#a9e4d7", "#b5e8dd", "#beede3", "#c5f0e6", "#cef2ea", "#dafa3", "#e8fef8"], columnWidth: '75%', borderRadius: 0, dataLabels: { position: "top", // top, center, bottom }, }, }, dataLabels: { enabled: false, formatter: function (val) { return "$" + val; }, offsetY: -20, style: { fontSize: "12px", colors: ["#304758"], }, }, xaxis: { categories: oneWayDates, position: "bottom", axisBorder: { show: false, }, labels:{ show:false, }, axisTicks: { show: false, }, crosshairs: { fill: { //colors:["#a9e4d7", "#b5e8dd", "#beede3", "#c5f0e6", "#cef2ea", "#dafa3", "#e8fef8"], width: 400, type: "gradient", colors: ['#F44336', '#E91E63', '#9C27B0'], gradient: { colorFrom: "#D8E3F0", colorTo: "#BED1E6", stops: [0, 100], opacityFrom: 0.4, opacityTo: 0.5, }, }, }, tooltip: { enabled: false, }, title: { text: oneWayText, offsetX: 0, offsetY: -25, style: { color: "#333", fontSize: '18px', fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 600, cssClass: 'apexcharts-xaxis-title', }, }, }, tooltip:{ enabled: true, custom: function({series, seriesIndex, dataPointIndex, w}) { return toolTipCustom(series, seriesIndex, dataPointIndex, w); } }, yaxis: { axisBorder: { show: false, }, axisTicks: { show: false, }, labels: { show: true, formatter: function (val) { return "$"+ val; }, style: { fontSize: '12px', fontWeight: 700, }, }, }, // title: { // text: "OneWay", // floating: true, // align: "left", // offsetX: 5, // offsetY: 0, // style: { // color: "#444", // marginBottom: "30px" // }, // }, }; var oneWayChart = new ApexCharts(document.querySelector("#chartOne"), oneWayOptions); oneWayChart.render();
var multiCityOptions = { series: [{ name: 'from', data: multiCityPrices, }], //colors:['#a9e4d7','#00b595', '#E91E63'], colors: [function({ dataPointIndex, value, w}) { var dates = w.config.xaxis.categories[dataPointIndex]; return activeDateColor(dates,w,value); }], chart: { events: { dataPointSelection: function (event, chartContext, config) { var dates = config.w.config.xaxis.categories[config.dataPointIndex]; var prices = config.w.config.series[0].data[config.dataPointIndex]; var allLabelBars = document.querySelectorAll(".apexcharts-bar-area"); allLabelBars.forEach((x,c) =>{ allLabelBars[c].style.fill = '#00b595'; }) event.target.style.fill = `rgba(255, 116, 51)`; updatingDateValue(prices,dates,chartContext,config); }, dataPointMouseEnter: function (event, chartContext, config) { event.target.style.cursor ="pointer"; } }, animations: { enabled: true, easing: 'easeinout', speed: 800, animateGradually: { enabled: true, delay: 150 }, dynamicAnimation: { enabled: true, speed: 350 } }, height: 350, type: "bar", // width: 700, toolbar: { show: false, } }, plotOptions: { bar: { columnWidth: '75%', borderRadius: 0, dataLabels: { position: "top", // top, center, bottom }, }, }, dataLabels: { enabled: false, formatter: function (val) { return "$"+val; }, offsetY: -20, style: { fontSize: "12px", colors: ["#304758"], }, }, xaxis: { categories: multiCityDates, position: "bottom", labels:{ show:false, }, axisBorder: { show: false, }, axisTicks: { show: false, }, crosshairs: { fill: { width: 400, type: "gradient", colors: ['#F44336', '#E91E63', '#9C27B0'], gradient: { colorFrom: "#D8E3F0", colorTo: "#BED1E6", stops: [0, 100], opacityFrom: 0.4, opacityTo: 0.5, }, }, }, tooltip: { enabled: false, }, title: { text: multiCityText, offsetX: 0, offsetY: -25, style: { color: "#333", fontSize: '18px', fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 600, cssClass: 'apexcharts-xaxis-title', }, }, }, tooltip:{ enabled: true, custom: function({series, seriesIndex, dataPointIndex, w}) { return toolTipCustom(series, seriesIndex, dataPointIndex, w); } }, yaxis: { axisBorder: { show: false, }, axisTicks: { show: false, }, labels: { show: true, formatter: function (val) { return "$" + val; }, style: { fontSize: '12px', fontWeight: 700, }, }, }, // title: { // text: "MultiCity", // floating: true, // offsetX: 5, // align: "left", // margin: 10, // style: { // color: "#444", // }, // }, }; var multiCityChart = new ApexCharts(document.querySelector("#chartThree"), multiCityOptions); multiCityChart.render();
var roundTripOptions = { series: [{ name: 'from', data: twoWayPrices, }], //colors:['#a9e4d7','#00b595', '#E91E63'], colors: [function( {dataPointIndex, w, value}) { var dates = w.config.xaxis.categories[dataPointIndex]; return activeDateColor(dates,w,value); }], chart: { events: { dataPointSelection: function (event, chartContext, config) { var dates = config.w.config.xaxis.categories[config.dataPointIndex]; var prices = config.w.config.series[0].data[config.dataPointIndex]; var allLabelBars = document.querySelectorAll(".apexcharts-bar-area"); allLabelBars.forEach((x,c) =>{ allLabelBars[c].style.fill = '#00b595'; }) event.target.style.fill = `rgba(255, 116, 51)`; updatingDateValue(prices,dates,chartContext,config); }, dataPointMouseEnter: function (event, chartContext, config) { event.target.style.cursor ="pointer"; } }, animations: { enabled: true, easing: 'easeinout', speed: 800, animateGradually: { enabled: true, delay: 150 }, dynamicAnimation: { enabled: true, speed: 350 } }, height: 350, type: "bar", //width: 700, toolbar: { show: false, } }, plotOptions: { bar: { columnWidth: '75%', borderRadius: 0, dataLabels: { position: "top", // top, center, bottom }, }, }, dataLabels: { enabled: false, formatter: function (val) { return "$" + val; }, offsetY: -20, style: { fontSize: "12px", colors: ["#304758"], }, }, xaxis: { categories: twoWayDates, position: "bottom", axisBorder: { show: false, }, labels:{ show:false, }, axisTicks: { show: false, }, crosshairs: { fill: { width: 400, type: "gradient", colors: ['#F44336', '#E91E63', '#9C27B0'], gradient: { colorFrom: "#D8E3F0", colorTo: "#BED1E6", stops: [0, 100], opacityFrom: 0.4, opacityTo: 0.5, }, }, }, tooltip: { enabled: false, }, title: { text: roundText, offsetX: 0, offsetY: -25, style: { color: "#333", fontSize: '18px', fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 600, cssClass: 'apexcharts-xaxis-title', }, }, }, tooltip:{ enabled: true, custom: function({series, seriesIndex, dataPointIndex, w}) { return toolTipCustom(series, seriesIndex, dataPointIndex, w); } }, yaxis: { axisBorder: { show: false, }, axisTicks: { show: false, }, labels: { show: true, formatter: function (val) { return "$"+ val; }, style: { fontSize: '12px', fontWeight: 700, }, }, }, // title: { // text: "Round Trip", // floating: true, // offsetX: 5, // align: "left", // margin: 10, // style: { // color: "#444", // } // }, }; var roundTripChart = new ApexCharts(document.querySelector("#chartTwo"), roundTripOptions); roundTripChart.render(); var allSliders = document.querySelectorAll(".apexSliders"); var itemCount = 0; var allSearchResultsDivs = document.querySelectorAll(".search-resultDiv"); var allFormBtns = document.querySelectorAll(".custom-btn"); var roundTripBtn = document.querySelector(".roundWay"); var onewayBtn = document.querySelector(".oneWay"); var multicityBtn = document.querySelector(".multiCity"); allFormBtns.forEach((b,i)=>{ b.addEventListener("click", function(){ allSliders.forEach((d,l)=>{ d.classList.remove("active"); }) allSliders[i].classList.add("active"); if(roundTripBtn.classList.contains("active")){ itemCount = 0; prevBtn.style.cssText = "cursor:not-allowed;pointer-events:none;opacity:0.5"; nextBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; } else if(onewayBtn.classList.contains("active")){ itemCount = 1; prevBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; nextBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; } else if(multicityBtn.classList.contains("active")){ itemCount = 2; prevBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; nextBtn.style.cssText = "cursor:not-allowed;pointer-events:none;opacity:0.5"; } }) }) var nextBtn = document.querySelector(".next"); var prevBtn = document.querySelector(".prev"); var totalItems = allSliders.length; prevBtn.style.cssText = "cursor:not-allowed;pointer-events:none;opacity:0.2"; nextBtn.onclick = function () { nextSlide("next"); } prevBtn.onclick = function () { nextSlide("prev"); } var nextSlide = function (dir) { if (dir == "next") { itemCount++; if (itemCount > 0) { prevBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; } if(itemCount == totalItems-1){ nextBtn.style.cssText = "cursor:not-allowed;pointer-events:none;opacity:0.2"; } if (itemCount == totalItems) { itemCount = 0; } } else { if (itemCount == 0) { itemCount = totalItems - 1; } else { itemCount--; nextBtn.style.cssText = "cursor:pointer;pointer-events:all;opacity:1"; } } //sliding effect for apexchart allSliders.forEach((x,v)=>{ x.classList.remove("active"); }) allSliders[itemCount].classList.add("active"); //changing the form navigation according to apexchart if(itemCount == 0){ changeTrip("RT"); prevBtn.style.cssText = "cursor:not-allowed;pointer-events:none;opacity:0.2"; } if (itemCount == 1){ changeTrip("OW"); } if (itemCount == 2){ changeTrip("MC"); } allSearchResultsDivs.forEach((a,b)=>{ a.style.display="none"; }) allSearchResultsDivs[itemCount].style.display="block"; allFormBtns.forEach((d,i)=>{ d.classList.remove("active"); }) allFormBtns[itemCount].classList.add("active"); } //When user press enter key the Search flights function will call $("#flightSearch").on('keyup', function (e) { if (e.keyCode == 13) { showFlightsByAirline(flightSearch); } });