This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(/*...*/).jqBootstrapValidation( | |
{ | |
submitSuccess: function ($form, event) { | |
$form.ajaxSubmit({ /* your jquery.form options here */ }); | |
event.preventDefault(); // stops the browser from submitting the form and loading a new page | |
} | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("...").ajaxForm({ | |
beforeSubmit: function (arr, $form, options) { | |
if ($form.find(":input").jqBootstrapValidation("hasErrors")) { | |
return false; /* we just found errors, so don't submit yet */ | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*************** | |
* | |
* My Wordpress plugin | |
* | |
*********************/ | |
$myvar = "Hello"; | |
function show_my_var(){ |
NewerOlder