Using jQuery ajax response data

Posted by Theopile on Stack Overflow See other posts from Stack Overflow or by Theopile
Published on 2010-06-13T04:20:25Z Indexed on 2010/06/13 4:32 UTC
Read the original article Hit count: 254

Filed under:

Hi again, I am using ajax post and am receiving data in the form of html. I need to split up the data and place pieces of the data all over the page. I built my response data to be something like <p id='greeting'> Hello there and Welcome </p> <p id='something'>First timer visiting our site eh'</p> It is a little more complicated and dynamic but I can figure it out if get this question answered. Thanks

$.ajax({
            type:'POST',
            url: 'confirm.php',
            data: "really=yes&sure=yes",
            success:function(data){
                    //Need to split data here
            }
        });

© Stack Overflow or respective owner

Related posts about jquery-ajax