Submit form without reloading page

Hi all,

I wish to submit a form without reloading the page, so I’m guessing I need some ajax to handle this. Here is an example of a simplified form:

<form action="email.php" method="post" id="contact">
<textarea name=msg id="msg"></textarea>
<input name="submit" type="submit" value="submit">

So I’m guessing I need some javascript or even better some jQuery, such as

$('#contact').submit(function() {
    $.post("contact.php",{msg : $(#msg)});
    return false;

Is this the right approach? Its not quite working for me

if i think correct then maybe this can help