multiple return values from PHP with jQuery AJAX

Posted by benhowdle89 on Stack Overflow See other posts from Stack Overflow or by benhowdle89
Published on 2011-01-04T13:44:33Z Indexed on 2011/01/04 13:54 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

I'm using this jQuery code:

                    $.ajax
                    ({
                    type: "POST",
                    url: "customerfilter.php",
                    data: dataString,
                    cache: false,
                    success: function(html)
                        {
                            $(".custName").html(html);
                        }
                    });

How can i do something like this: $(".projDesc").html(html1); So i can split the returned results into two html elements?

echo "<p>" .$row['cust_name']. "</p>";

thats the PHP i'm using and i want to echo another statement which i can put into another HTML element

Does this make sense?

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery