PHP code example of dlepera88-jquery / jquery-form-ajax
1. Go to this page and download the library: Download dlepera88-jquery/jquery-form-ajax library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dlepera88-jquery / jquery-form-ajax example snippets
javascript
var $meu_form = $('#meu-form');
$meu_form.formAjax({validar_invisiveis:true});
$meu_form.formAjax({validar_invisiveis:false});
javascript
$('#meu-form').formAjax({
func_antes: function () {
return confirm('Tem certeza que deseja enviar essas informações?');
}
});
javascript
$('#meu-form').formAjax({
func_depois: function (retorno) {
alert(retorno);
}
});