JQuery - prevent form submitting on enter button with out prevent the keystroke
$('.filters').keypress(function(event)
{
if(event.keyCode === 13)
{
$.fn.yiiGridView.update('lead-category-grid', {
data: $(this).serialize()
});
return false;
}
});
since this function will prevent the enter keystroke. but i need some function to execute but form should not submitted