I am trying to create dynamic php content on ajax success like the one below. I keep getting parse error. Not able to figure out the issue. New to PHP n Ajax
$.ajax({
type: "GET",
url: "edit_listing.php",
data: {value:val},
dataType: "JSON",
success: function(data) {
txt="<php echo '<div></div>';"+
"echo '<p></p>'; ?>";
$("#someid").append(txt);
}
});