$(document).ready(function () {
var options= {
url: "/deleteRecord/"
// success: function (data) {
// $("-sharprecord").html(data);
// }
// target:"-sharprecord"
};
$("-sharprecord_form").submit(
function () {
$("form").ajaxSubmit(options);
alert("aaa");
// return false;
// alert("aaa")
}
);
}
when I click
<button type="submit">
</button>
When , I don"t jump to / deleteRecord/, and I don"t execute alert,. When I delete $("form") .ajaxSubmit (options);, I execute alert. Why can"t you jump to a web page?