jquery - Bootstrap validation verification -
i have html form , i've applied bootstrap validation (via bootstrap validator plugin) on it. works on "save" button, i've got onclick
attribute set on same button. want executed if form validation true.
here example: want specialtysave_onclick()
function executed if form valid.
<button class="btn btn-primary btn-sm" type="submit" onclick="specialtydetail.specialtysave_onclick();">save</button>
i dont know kind of validation using mutual thing check form this
$("form").submit(function() { var result = $("form").valid(); if (result == false) { specialtysave_onclick() } else { .... } ]);
jquery twitter-bootstrap
No comments:
Post a Comment