I'm using the .load() function in jquery to insert the results of a php file to an element. My code looks likethis:
$('#edit .postcontent').load('admin-ajax.php', {'action':'qe-getpost'});
Everything works great - the returned value is loaded into .postcontent perfectly. However, a 0 is appended to the end. Every time. Even if I return nothing, a lonely 0 shows up inside .postcontent. Can anyone explain what is going on?
Thanks!