PHP code example of jagfx / form-js
1. Go to this page and download the library: Download jagfx/form-js 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/ */
jagfx / form-js example snippets
`javascript
$( '#yourForm' ).formJS( {
form: {
ajaxSettings: {
async: false,
beforeSend: function (xhr){
xhr.setRequestHeader('Authorization', make_base_auth(username, password));
}
},
alertContainer: '.customContainer',
btnSubmit: '.myCustomBtnID'
}
} );
`javascript
$( '#yourForm' ).formJS( {
callback: function ( currentAlert ) {
// Do something with currentAlert
}
} );