11
rated 0 times
[
18]
[
7]
/ answers: 1 / hits: 23284
/ 13 Years ago, fri, september 23, 2011, 12:00:00
I can only modify the code in the ajax call.
The ajax call occurs when I click the submit in form named $('#form1')
.
$('#form1').submit(function () {
$.ajax({
url: 'some.php',
type: 'POST',
data: somedata,
success: function (msg) {
if (!msg) {
// I wanna to stop '#form1' submit here,how to do that? I can only modify the code in the ajax call.
}
}
});
});
More From » jquery