var params = $('myForm').serialize();and then you would disable the form like so:
$('myForm').disable();However, here is a little gotcha I always seem to forget:
- DO NOT disable the form before you read your form values
$('myForm').serialize();will no longer work. By not working, I mean will just return empty and you will be beating your head against the desk.