Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $result = array(
- 'State' => 'Done',
- 'ID' => 1
- );
- wp_send_json( $result );
- ?>
- $( '#contact_form' ).bootstrapValidator({
- fields: {
- // ...
- },
- submitHandler: function( formInstance ) {
- $.post( "../send-message", $("#contact_form").serialize(), function( result ) {
- alert( result );
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement