bimtech
Important Notice: No Direct Admissions at BIMTECH | No Agents or Brokers | Admissions only through CAT / XAT / GMAT / CMAT / MAT | Any direct admission claim is fraudulent.
Important Notice: No Direct Admissions at BIMTECH | No Agents or Brokers | Admissions only through CAT / XAT / GMAT / CMAT / MAT | Any direct admission claim is fraudulent.
Close
hamblogo

Programs

Explore Our Diverse Range of Programs and
Find the Perfect Fit for Your Goals
icon
PGDM

PGDM Core

arrow
View
icon
PGDM

Insurance Business Management

arrow
View
icon
PGDM

International Business

arrow
View
icon
PGDM

Retail Management

arrow
View
icon
Fellow Program

Equivalent to Ph.D.

arrow
View
icon
PGDM Online

Equivalent to MBA

arrow
View
Apply Now
×
admission
Birla Institute of Management Technology (BIMTECH)
'); win.document.close(); win.focus(); win.print(); win.close(); }); $('.filtter_research').click(function(){ $('.filter_search').submit(); }) //Student verification $('#student_verification').on('submit', function (e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ url: 'https://www.bimtech.ac.in/submit-verification', // define this route type: 'POST', data: formData, contentType: false, processData: false, beforeSend: function () { $('.submit_btn').prop('disabled', true); }, success: function (response) { // alert('Form submitted successfully!'); // $('#student_verification')[0].reset(); window.location.href = "https://www.bimtech.ac.in/pay"; $('.submit_btn').prop('disabled', false); }, error: function (xhr) { $('.submit_btn').prop('disabled', false); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { alert('Something went wrong. Please try again.'); } } }); }); ///Submit Online $('#paper_submission_form').on('submit', function(e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ url: "https://www.bimtech.ac.in/submit-online", // update to your route name method: 'POST', data: formData, processData: false, contentType: false, beforeSend: function() { $('.submit_btn').val('Submitting...'); }, success: function(response) { // alert(response.message); $('#paper_submission_form')[0].reset(); $('.submit_btn').val('Submit'); window.location.href = "https://www.bimtech.ac.in/thank-you"; }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { alert("Something went wrong!"); } } }); }); $('.check_gst').click(function(){ var gst_no = $(this).val(); if(gst_no =='GST Unregistered'){ $('.gst_number').hide(); } else { $('.gst_number').show(); } }); $('#migration_form').on('submit', function(e) { e.preventDefault(); // prevent default form submission // Create FormData object from the form element var formData = new FormData(this); $.ajax({ url: "https://www.bimtech.ac.in/submit-immigration", // update with the appropriate route name or URL type: 'POST', data: formData, contentType: false, // tell jQuery not to set contentType processData: false, // tell jQuery not to process the data dataType: 'json', success: function(response) { // clear any errors previously displayed $('#response_message').html(''); if(response.success) { window.location.href = "https://www.bimtech.ac.in/pay"; // optionally reset the form $('#migration_form')[0].reset(); } else { // If success false is returned, display message $('#response_message').html('

' + response.message + '

'); } }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { // var errors = xhr.responseJSON.errors; var errors = xhr.responseJSON.errors || {}; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); // ✅ Safe check for captcha error if (errors['g-recaptcha-response']) { $('.cpatech_msg').html('

' + errors['g-recaptcha-response'][0] + '

'); } else { $('.cpatech_msg').html('

' + (xhr.responseJSON.message || 'Validation failed.') + '

'); } } else { console.log("Something went wrong!"); } } }); }); $('#duplicate_diploma').on('submit', function(e) { e.preventDefault(); // prevent default form submission // Create FormData object from the form element var formData = new FormData(this); $.ajax({ url: "https://www.bimtech.ac.in/duplicate-diploma-submit", // update with the appropriate route name or URL type: 'POST', data: formData, contentType: false, // tell jQuery not to set contentType processData: false, // tell jQuery not to process the data dataType: 'json', success: function(response) { // clear any errors previously displayed $('#response_message').html(''); if(response.success) { window.location.href = "https://www.bimtech.ac.in/pay"; // optionally reset the form $('#migration_form')[0].reset(); } else { // If success false is returned, display message $('#response_message').html('

' + response.message + '

'); } }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { console.log("Something went wrong!"); } } }); }); $('#registrationForm').on('submit', function(e) { e.preventDefault(); // Clear all error messages first $('.text-danger').html(''); $('#successMessage').html(''); $.ajax({ url: "https://www.bimtech.ac.in/saveforRegular", method: "POST", data: $(this).serialize(), headers: { 'X-CSRF-TOKEN': '0vK2glJd6Dx0Pm7hA5Ho9swe5IciZ2btWP6s1bpW' }, success: function(response) { if (response.status) { $('#successMessage').text(response.message); $('#registrationForm')[0].reset(); window.location.href = "https://www.bimtech.ac.in/pay"; } else { let errors = response.errors; $.each(errors, function(field, messages) { $('#error_' + field).text(messages[0]); }); } }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { console.log("Something went wrong!"); } } }); }); $('#industry_prop').on('submit', function(e) { e.preventDefault(); // Clear all error messages first $('.text-danger').html(''); $('#successMessage').html(''); $.ajax({ url: "https://www.bimtech.ac.in/saveForStudent", method: "POST", data: $(this).serialize(), headers: { 'X-CSRF-TOKEN': '0vK2glJd6Dx0Pm7hA5Ho9swe5IciZ2btWP6s1bpW' }, success: function(response) { if (response.status) { $('#successMessage').text(response.message); $('#industry_prop')[0].reset(); window.location.href = "https://www.bimtech.ac.in/pay"; } else { let errors = response.errors; $.each(errors, function(field, messages) { $('#error_' + field).text(messages[0]); }); } }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { console.log("Something went wrong!"); } } }); }); $('#international_conference').on('submit', function(e) { e.preventDefault(); // Clear all error messages first $('.text-danger').html(''); $('#successMessage').html(''); $.ajax({ url: "https://www.bimtech.ac.in/saveInternationalConference", method: "POST", data: $(this).serialize(), headers: { 'X-CSRF-TOKEN': '0vK2glJd6Dx0Pm7hA5Ho9swe5IciZ2btWP6s1bpW' }, success: function(response) { if (response.status) { $('#successMessage').text(response.message); $('#international_conference')[0].reset(); window.location.href = "https://www.bimtech.ac.in/pay"; } else { let errors = response.errors; $.each(errors, function(field, messages) { $('#error_' + field).text(messages[0]); }); } }, error: function(xhr) { $('.submit_btn').val('Submit'); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { console.log("Something went wrong!"); } } }); }); $('#international').on('submit', function(e) { e.preventDefault(); // Clear previous error messages and feedback $('.text-danger').html(''); $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.ajax({ url: "https://www.bimtech.ac.in/submitInternational", // Adjust if using route() method: "POST", data: $(this).serialize(), headers: { 'X-CSRF-TOKEN': '0vK2glJd6Dx0Pm7hA5Ho9swe5IciZ2btWP6s1bpW' }, success: function(response) { if (response.status) { $('#international')[0].reset(); window.location.href = "https://www.bimtech.ac.in/thank-you"; } else { let errors = response.errors; $.each(errors, function(field, messages) { $('#error_' + field).text(messages[0]); }); } }, error: function(xhr) { if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $.each(errors, function(key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { alert("Something went wrong!"); } } }); }); }); function opensharediv(){ $('.socialshareurl').toggleClass('d-none'); } $('#category_type').change(function () { var amt_value = parseFloat($(this).val()); var selectedText = $(this).find('option:selected').text(); if (!isNaN(amt_value)) { var gst = (amt_value * 18) / 100; var total = amt_value + gst; // Generate HTML dynamically var html = `

Basic Amount: ₹ ${amt_value.toFixed(2)}

GST (18%): ₹ ${gst.toFixed(2)}

Total Payable: ₹ ${total.toFixed(2)}

`; // Insert into the DOM $('#payment_summary').html(html); $('#selected_cat').val(selectedText) } else { $('#payment_summary').html(''); $('#selected_cat').val('') } }); ///EDP form $(document).ready(function () { $('#edp_form').on('submit', function (e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ url: 'https://www.bimtech.ac.in/submit-edp-form', // define this route type: 'POST', data: formData, contentType: false, processData: false, beforeSend: function () { $('.submit_btn').prop('disabled', true); }, success: function (response) { window.location.href = "https://www.bimtech.ac.in/pay"; $('.submit_btn').prop('disabled', false); }, error: function (xhr) { $('.submit_btn').prop('disabled', false); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { alert('Something went wrong. Please try again.'); } } }); }); }); document.addEventListener('DOMContentLoaded', function() { const input = document.querySelector('.global-search-input'); const button = document.querySelector('.global-search-button'); function submitSearch() { const query = input.value.trim(); if (query) { window.location.href = `https://www.bimtech.ac.in/search?q=${encodeURIComponent(query)}`; } } // Trigger on Enter key input.addEventListener('keypress', function(e) { if (e.key === 'Enter') { e.preventDefault(); submitSearch(); } }); // Trigger on Button click button.addEventListener('click', submitSearch); }); $(document).ready(function () { const $form = $('#custom_form_event'); $form.find('[name="category"]').on('change', function () { const $selected = $(this).find(':selected'); const base = parseFloat($selected.data('amount')) || 0; const gstPercent = parseFloat($selected.data('gst_percentage')) || 0; const gstAmount = (base * gstPercent / 100).toFixed(2); const totalPayable = (base + parseFloat(gstAmount)).toFixed(2); // Show values in summary $form.find('.payment-summary').removeClass('d-none'); $form.find('.base-amount').text(base.toFixed(2)); $form.find('.gst-percent').text(gstPercent); $form.find('.gst-amount').text(gstAmount); $form.find('.total-payable').text(totalPayable); // Fill hidden inputs $form.find('[name="basic_pay"]').val(base); $form.find('[name="gst_percentage"]').val(gstPercent); $form.find('[name="gst_amount"]').val(gstAmount); $form.find('[name="total_payable"]').val(totalPayable); }); // Trigger initial calculation if needed $form.find('[name="category"]').trigger('change'); $('#custom_form_event').on('submit', function (e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ url: 'https://www.bimtech.ac.in/submit-common-form', type: 'POST', data: formData, contentType: false, processData: false, beforeSend: function () { $('#custom_button_key_event').prop('disabled', true); }, success: function (response) { // alert('Form submitted successfully!'); // $('#student_verification')[0].reset(); window.location.href = "https://www.bimtech.ac.in/pay"; $('#custom_button_key_event').prop('disabled', false); }, error: function (xhr) { $('#custom_button_key_event').prop('disabled', false); if (xhr.status === 422) { var errors = xhr.responseJSON.errors; $('.form-control').removeClass('is-invalid'); $('.invalid-feedback').remove(); $.each(errors, function (key, value) { var input = $('[name="' + key + '"]'); input.addClass('is-invalid'); input.after('
' + value[0] + '
'); }); } else { alert('Something went wrong. Please try again.'); } } }); }); }); $('#faculty_publication_details').change(function(){ var rf_type = $(this).val(); window.location.href = "https://www.bimtech.ac.in/research/" + rf_type; }); $(document).ready(function() { $(document).on('click', '.submit_btn_fl', function(e) { e.preventDefault(); var form = $('#contactFormfellow')[0]; var formData = new FormData(form); // Remove previous validation messages $('.error-message').remove(); $.ajax({ url: "https://www.bimtech.ac.in/save-fellow-contact", type: "POST", data: formData, contentType: false, processData: false, beforeSend: function() { $('.submit_btn_fl').val('Submitting...').attr('disabled', true); }, success: function(response) { $('.submit_btn_fl').val('Submit').attr('disabled', false); window.location.href = "https://www.bimtech.ac.in/thank-you"; if (response.success) { $('#contactFormfellow')[0].reset(); if (typeof grecaptcha !== "undefined") grecaptcha.reset(); } }, error: function(xhr) { $('.submit_btn_fl').val('Submit').attr('disabled', false); if (xhr.status === 422) { // Laravel validation error var errors = xhr.responseJSON.errors; $.each(errors, function(field, messages) { var inputField = $('[name="' + field + '"]'); inputField.after('' + messages[0] + ''); }); } else { alert('An unexpected error occurred. Please try again.'); } } }); }); }); $(document).ready(function () { // When any .information_bulletin_frm is clicked $('.information_bulletin_frm').on('click', function () { console.log("click"); $('#information_bulletin_fr').addClass('active'); $('.information_bulletin_frm').hide(); // hide all buttons }); // Close function window.closeFormss = function() { $('#information_bulletin_fr').removeClass('active'); $('.information_bulletin_frm').show(); // show again } }); $(document).ready(function(){ // Add Qualification Block $("#addQualificationBtn").click(function(){ let newBlock = $(".qualification-block:first").clone(); // clone first block newBlock.find("input, select").val(""); // clear all values newBlock.find(".removeQualificationBtn, .loopremovepaperPresented").remove(); newBlock.append('
'); $("#qualificationContainer").append(newBlock); var parent = $(this).closest('.form-section'); }); // Remove Qualification Block $(document).on("click", ".removeQualificationBtn", function(){ $(this).closest(".qualification-block").remove(); }); $("#addEmploymentBtn").click(function(){ let newBlock = $(".employment-block:first").clone(); // clone the first block newBlock.find("input").val(""); // clear all input values newBlock.find(".loopremoveEmploymentBtn").remove(); newBlock.append('
'); $("#employmentContainer").append(newBlock); }); // ❌ Remove Employment Record $(document).on("click", ".removeEmploymentBtn", function(){ $(this).closest(".employment-block").remove(); }); $("#addIndustryBtn").click(function(){ let newBlock = $(".industry-block:first").clone(); // clone first block newBlock.find("input").val(""); // clear all input values newBlock.find(".loopremoveIndustryBtn").remove(); newBlock.append('
'); $("#industryContainer").append(newBlock); }); // ❌ Remove Industry Experience Record $(document).on("click", ".removeIndustryBtn", function(){ $(this).closest(".industry-block").remove(); }); // research_paper_publication $("#addPubBtn").click(function(){ let totalBlocks = $(".pub-block").length; if (totalBlocks >= 6) { $('#Book_Published').html(''); //$('#research_paper')("You can add maximum 6 records only."); setTimeout(function() { $('#Book_Published').html(''); }, 3000); return; } let newBlock = $(".pub-block:first").clone(); // clone the first publication block newBlock.find("input[type='text'], input[type='date'], select").val(""); // clear all text/date/select newBlock.find(".loopremovePubBtn").remove(); newBlock.find("input[type='checkbox']").prop("checked", false); // uncheck checkboxes newBlock.find(".abdc-category-wrapper").hide(); // hide ABDC category initially // Add a remove button (if not already present) newBlock.append('
'); $("#pubContainer").append(newBlock); }); // Project & Consultancy $("#addprojectConsultancyBtn").click(function () { let totalBlocks = $(".project-consultancy-block").length; if (totalBlocks >= 6) { $('#Book_Published').html( '' ); setTimeout(function () { $('#Book_Published').html(''); }, 3000); return; } // Clone first block let newBlock = $(".project-consultancy-block:first").clone(); // Clear inputs newBlock.find("input[type='text'], input[type='date'], select").val(""); // Remove existing remove button (if any) newBlock.find(".removeprojectConsultancyBtn").remove(); // Append remove button newBlock.append(`
`); $("#project_consultancy").append(newBlock); }); $(document).on('click', '.removeprojectConsultancyBtn', function () { $(this).closest('.project-consultancy-block').remove(); }); // ❌ Remove Publication Block $(document).on("click", ".removePubBtn", function(){ $(this).closest(".pub-block").remove(); }); // 🔁 Toggle ABDC Category Dropdown $(document).on("change", ".abdc-checkbox", function(){ let wrapper = $(this).closest(".form_bx").find(".abdc-category-wrapper"); if ($(this).is(":checked")) { wrapper.show(); } else { wrapper.hide().find("select").val(""); } }); ///published_book $("#addBookBtn").click(function(){ let newBlock = $(".book-block:first").clone(); // clone the first book block newBlock.find("input[type='text'], input[type='month'], select").val(""); // clear text/month/select values newBlock.find(".loopremoveBookBtn").remove(); newBlock.append('
'); $("#bookContainer").append(newBlock); }); // ❌ Remove Book Block $(document).on("click", ".removeBookBtn", function(){ $(this).closest(".book-block").remove(); }); $("#paperPresentedBtn").click(function(){ let totalBlocks = $(".paper-presented-block").length; console.log(totalBlocks); if (totalBlocks >= 6) { $('#paper_presented').html('' ); // Remove message after 3 seconds setTimeout(function() { $('#paper_presented').html(''); }, 3000); return; } let newBlock = $(".paper-presented-block:first").clone(); // clone first block newBlock.find("input").val(""); // clear all input values newBlock.find(".loopremovepaperPresented").remove(); newBlock.append('
'); $("#paperPresentedatConference").append(newBlock); }); // ❌ Remove Industry Experience Record $(document).on("click", ".removepaperPresented", function(){ $(this).closest(".paper-presented-block").remove(); }); $(document).on('change', '.get_qualification', function () { var q_type = $(this).val(); // scope it to the current block (VERY IMPORTANT for add-more) var parent = $(this).closest('.form-section'); // adjust if needed if (q_type === 'phd') { parent.find('.phd_mark').show(); parent.find('.other_mark').hide(); } else { parent.find('.phd_mark').hide(); parent.find('.other_mark').show(); } }); $(document).on('click', '.loopremovepaperPresented', function() { if ($('.qualification-block').length > 1) { $(this).closest('.qualification-block').remove(); } else { alert('At least one qualification is required.'); } }); $(document).on('click', '.loopremoveEmploymentBtn', function() { if ($('.employment-block').length > 1) { $(this).closest('.employment-block').remove(); } else { alert('At least one employment is required.'); } }); $(document).on('click', '.loopremoveIndustryBtn', function() { if ($('.industry-block').length > 1) { $(this).closest('.industry-block').remove(); } else { alert('At least one industry is required.'); } }); $(document).on('click', '.loopremovePubBtn', function() { if ($('.pub-block').length > 1) { $(this).closest('.pub-block').remove(); } else { alert('At least one pub is required.'); } }); $(document).on('click', '.loopremoveBookBtn', function() { if ($('.book-block').length > 1) { $(this).closest('.book-block').remove(); } else { alert('At least one book is required.'); } }); $(document).on('click', '.loopremovepaperPresented', function() { if ($('.paper-presented-block').length > 1) { $(this).closest('.paper-presented-block').remove(); } else { alert('At least one pub is required.'); } }); }); $(document).on("submit", "#carrier_job", function(e){ e.preventDefault(); let form = $(this); var type = $('.clicked_button').val(); // Clear old errors $(".error").remove(); $(".form-control, .form-select").removeClass("is-invalid"); $('.error_accept').text(''); $.ajax({ url: "https://www.bimtech.ac.in/save_carrier_job", type: "POST", data: new FormData(this), // For file uploads processData: false, contentType: false, beforeSend: function() { if (type != 'Save') { // Code to run before sending the request console.log("Form is about to be submitted!"); // Disable submit button to prevent multiple clicks $('#submit_type').prop('disabled', true); // Optionally, show a loader $('#submit_type').html(' Submitting...'); } }, success: function (response) { // Re-enable button $('#submit_type').prop('disabled', false); $('#submit_type').html('Submit'); if (response.type == 'Save') { $('#submit_type').prop('disabled', false); $('#save_message').html( '' ); // window.location.href = "https://www.bimtech.ac.in/thank-you"; $('html, body').animate({ scrollTop: 0 }, 'fast'); } else { window.location.href = "https://www.bimtech.ac.in/thank-you"; $('html, body').animate({ scrollTop: 0 }, 'fast'); } }, error: function (xhr) { // Re-enable button $('#submit_type').prop('disabled', false); $('#submit_type').html('Submit'); if (xhr.status === 422) { let errors = xhr.responseJSON.errors; $.each(errors, function (key, value) { let input; if (key.includes('.')) { // e.g., "qualification.1" let parts = key.split('.'); let arrayName = parts[0]; let index = parseInt(parts[1]); input = $('[name="'+ arrayName +'[]"]').eq(index); } else { input = $('[name="'+ key +'"]'); } if (key === 'declaration') { // For the declaration checkbox $('.error_accept').text(value[0]); } else if (input.length) { input.addClass("is-invalid"); input.next('.error').remove(); input.after(''+ value[0] +''); } else { console.log("No input found for:", key, value); } }); // Scroll to first error if ($('.is-invalid').length) { $('html, body').animate({ scrollTop: $('.is-invalid:first').offset().top - 100 }, 'fast'); } else if ($('.error_accept').text() !== '') { $('html, body').animate({ scrollTop: $('.error_accept').offset().top - 100 }, 'fast'); } } else { alert("Something went wrong!"); console.log(xhr.responseText); } } }); }); $(document).on('keyup', '#emailid', function() { var query = $(this).val(); if (query.length >= 3) { $.ajax({ url: "https://www.bimtech.ac.in/check_email_exists", method: "GET", data: { query: query }, success: function(data) { if (data.exists) { $('#email-availability-status').html( '' + 'Click here to fill unsaved information' ); } else { } } }); } else { $('#email-availability-status').html(""); } }); $(document).on('click', '#fill_previous_detail', function() { var email = $('#emailid').val(); $.ajax({ url: "https://www.bimtech.ac.in/send_otp_mail", method: "GET", data: { email: email }, success: function(data) { if (data.status == true) { $('#applicant_email').val(email); $('#otpModal').modal('show'); }else { } } }); }); $("#verifyOtpButton").click(function () { let otp = ''; // Collect OTP from all 6 inputs $(".otp-input").each(function () { otp += $(this).val(); }); // Validation if (otp.length !== 6) { alert("Please enter a valid 6-digit OTP."); return; } // Ajax request $.ajax({ url: "https://www.bimtech.ac.in/verify_otp", method: "POST", data: { otp: otp, 'email': $('#applicant_email').val(), _token: "0vK2glJd6Dx0Pm7hA5Ho9swe5IciZ2btWP6s1bpW" }, success: function(response) { if (response.status === true) { location.reload(true); } else { $("#otp-error").remove(); $("#verifyOtpButton").before( '

Invalid OTP. Please try again.

' ); } } }); }); $(document).on("keyup", ".otp-input", function (e) { let value = $(this).val(); if (value.length === 1) { // Go to next input $(this).next(".otp-input").focus(); } // If backspace and input is empty → go to previous if (e.key === "Backspace" || e.keyCode === 8) { $(this).prev(".otp-input").focus(); } }); $('.clicked_button').click(function(){ var type = $(this).data('type'); $('.clicked_button').val(type); }); $('#mobile_no').on('input', function () { this.value = this.value.replace(/\D/g, '').slice(0, 10); }); $(document).on('change', '.from_date', function () { let fromDate = $(this).val(); // Find the corresponding "To" input let toInput = $(this) .closest('.form_bx') .next('.form_bx') .find('.to_data'); // Set minimum selectable date toInput.attr('min', fromDate); // Reset invalid To date if (toInput.val() && toInput.val() < fromDate) { toInput.val(''); } });