When I submit #top_cat, the firebug console says "ok" because of the debug text I'm printing here:
function submitHandler() {
console.log("ok");
$.post($(this).attr('action'), $(this).serialize(), null, "script");
return false;
}
But if I click on #tip_click, I see "start" and "end" in the output but it never says "ok" - meaning the submitHandler never ran.
Is there anything obviously wrong with this code?
$(document).ready(function () {
$('#top_cat').submit(submitHandler);
$("#tip_click").click(function() {
console.log("start");
$("#high_hat").submit(submitHandler);
console.log("end");
});
});