📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
taksiscripti.demodesign.com.tr
/
assets
/
js
📝
contact.js
← Geri Dön
/* * * Contact JS * @DynamicLayers */ $(function() { // Get the form. var form = $('#ajax_contact'); // Get the messages div. var formMessages = $('#form-messages'); // Set up an event listener for the contact form. $(form).submit(function(event) { // Stop the browser from submitting the form. event.preventDefault(); // Serialize the form data. var formData = $(form).serialize(); // Submit the form using AJAX. $.ajax({ type: 'POST', url: $(form).attr('action'), data: formData }) .done(function(response) { // Make sure that the formMessages div has the 'success' class. $(formMessages).removeClass('alert-danger'); $(formMessages).addClass('alert-success'); // Set the message text. $(formMessages).text(response); // Clear the form. $('#firstname').val(''); $('#lastname').val(''); $('#email').val(''); $('#phone').val(''); $('#message').val(''); }) .fail(function(data) { // Make sure that the formMessages div has the 'error' class. $(formMessages).removeClass('alert-success'); $(formMessages).addClass('alert-danger'); // Set the message text. if (data.responseText !== '') { $(formMessages).text(data.responseText); } else { $(formMessages).text('Oops! An error occured and your message could not be sent.'); } }); }); });
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula