GET QUOTE
Charter Bus Hire - A top coach hire specialist
Your inquiry details have been received, and
First Step of your booking is now complete!
We will get back to you shortly (during our regular working hours) with the perfect solution for your needs.
If your inquiry is related to urgent travel, please don't hesitate to reach out to us at +1800344566
Booking Summary
No data available yet!
'); } // Move to the next step $('.btn-next').on('click', function (e) { e.preventDefault(); if (!$('#quote-form').valid()) return; console.log('btn next'); const currentStep = formSteps.eq(currentStepIndex); const nextStep = currentStep.next('.form-step'); // Ensure all fields in the current step are filled before moving on let allFieldsFilled = true; currentStep.find('input:visible, select:visible, textarea:visible').each(function () { if ($(this).prop('required')) { // Only check required fields if (!$(this).val()) { allFieldsFilled = false; $(this).focus(); return false; // Break loop } } }); if (!allFieldsFilled) return; // Save data for the current step currentStep.find('input, select, textarea').each(function () { let input = $(this); formData[input.attr('name')] = input.val(); }); // Update the progress bar and summary currentStepIndex++; updateProgressBar(); updateSummary(); // Show the next step and hide the current one currentStep.hide(); nextStep.show(); // Scroll to a fixed position (e.g., 200 pixels from the top of the page) $('html, body').animate({ scrollTop: 200 // Change this value to the fixed position you want }, 500); // 500ms scroll speed }); // Move to the previous step $('.btn-prev').on('click', function (e) { e.preventDefault(); const currentStep = formSteps.eq(currentStepIndex); const prevStep = currentStep.prev('.form-step'); // Update the progress bar currentStepIndex--; updateProgressBar(); // Show the previous step and hide the current one currentStep.hide(); prevStep.show(); // Scroll to a fixed position (e.g., 200 pixels from the top of the page) $('html, body').animate({ scrollTop: 200 // Change this value to the fixed position you want }, 500); // 500ms scroll speed }); // Edit step functionality $(document).on('click', '.edit-btn', function (e) { e.preventDefault(); const stepIndex = $(this).data('step'); formSteps.hide().eq(stepIndex).show(); // Show the selected step only currentStepIndex = stepIndex; updateProgressBar(); }); });