post to page with jQuery and read response
- by wcpro
I'm trying to post to a form using jQuery and read the results of the posted page.  I have created a super simple example.
    $('#submit').click(
        function () {
            $.get('post.htm',
                {
                    demo : "true"
                },
                function (data) {
                    alert('data load: ' + data);
                },)
        });
the html page for post.html is just a simple html form
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
this is a post
</body>
</html>