jquery on form submit call function
$(document).ready(function() {
$("your form selector here").submit(function() {
// do the extra stuff here
$.ajax({
type: "POST",
url: "mail.php",
data: $(this).serialize(),
success: function() {
$('.simple-sucess').fadeIn(100).show();
$('.contact_form').fadeOut(100).hide();
$('.simple_error').fadeOut(100).hide();
}
})
})
})
Also in JavaScript:
- chartjs start at 0
- how get parent element javascript
- javascript run function once
- google sign up react npm
- get field type file js and loop
- how to access router from the store vue
- javascript function to format phone number
- angular how to get previous state
- send message to all servers discord.js
- Convert from JSON to Python
- how to remove a value from an array and return the new array in javascript
- express react application
- ejemplo async await javascript
- UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
- react search when stop typing
- what is pug template engine
- js module.exports documentation comments
- jquery make readonly textbox
- javascrip check if string contains substring
- accept 2 values after decimal in angular forms
- js delete all array items
- javascript detect click outside element
- find string in array javascript
- javascript string proper case