" " seems to work in , but I'm not sure why. return falsesubmitHandler
function submitHandler() {
$.post($(this).attr('action'), $(this).serialize(), null, "script");
return false;
}
$(document).ready(function () {
$('#top_cat').submit(submitHandler);
$("#tip_click").click(function() {
$("#high_hat").submit(submitHandler);
});
});
I'm also not sure that I need to add " " to the function so that it reads like this: return false#tip_click
$("#tip_click").click(function() {
$("#high_hat").submit(submitHandler);
return false;
});
Which rule should be followed here when " return false"?
Ertlan
source
share