Something like this:

function send(){
    var params = $("#commentsForm").serialize();
    $.post("subscribe.php", params, function(data){
        $("#updateDiv").html("Data Loaded: " + data);
    });
}

On Thu, May 7, 2009 at 19:40, Brian Yanosik <byano...@gmail.com> wrote:

> I am moving all of my scripts from mootools/scriptlicious to jquery.
>
> I was easly able to submit a form and update a div (based on the output of
> the php file) as follows:
>
> <script type="text/javascript">
> function send(){
>     var params = Form.serialize($('commentsForm'));
>     new Ajax.Updater('updateDiv', '/subscribe.php', {asynchronous:true,
> parameters:params});
> }
> </script>
>
> I can't seem to find ta way to do this easily with jquery.
>
> Can anyone point me in the right direction?
>
> Thanks
> Brian
>

Reply via email to