How to publish a form without updating the page in jQuery?

advertisements

I want to be able to post the following form without the page refreshing in jquery and i need the form to post in information into actions.php

can somebody help me please?

<div id="postbox">
    <form method="post" id="ptowall">
        <input name="post" type="submit" value="Post" />
    </form>
</div>

Thank you.


$("#ptowall").bind("submit", function() { return false; });

$.post("your-form-submit-handler", $("#ptowall").serialize());