[jQuery] Serializing a form

[jQuery] Serializing a form

Newbie alert. I've tried all sorts of weird combinations
and I just don't get it. I just need one example and I'll
be right... how to serialize the form elements and capture
the event so it doesn't do a page refresh, and have any
results appear in "target" ?...
<form id="myform" action="some.php">
<input name="username">
<input name="password" type="password">
<input type="submit" value="Login">
</form>
<div id="target"></div>
I can't seem to get past this snippet, and I have no idea
how to hook in .serialize(callback) into this...
$("form#myform").submit(function(){
alert("submit");
return false;
});
--markc
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/