don't redirect on form submit

don't redirect on form submit

i would like to know how to stay on the same page after submitting a form.

is there a simple override in jquery mobile, or do i have to do something like this:

$("#myform").bind('submit', function(event){ 
     event.preventDefault(); 
     //ajax handling here using .get() or something


//update page content

});