0
我嘗試做以下任務:調用驗證按鈕功能和獲得的結果(真/假)
$("#btn1").click(function(){
var success = $("#myFrm").validate();
if (success == true) {
// post form through ajax
}
else{
// set focus on first field
}
});