I’m using $.post to deliver data to my main page from droppable elements. Yet when I echo out the the data I’m getting my toolbar echoed out to me as well as the data I fetched.
if (isset($_POST['data'])){
$data = $_POST['data'];
echo $data;
The javascript containing the $.post is below
if(dropbox && dropbox1 !== ''){
$.post("account_main.php",
{data: $(this).text()},
function(data) {
$('#demo').html(data);
});
}
And a visual for the script using the droppable elements is HERE, but the problem is not shown here, can’t duplicate it. I am open to any suggestions.
If I understand your problem correctly, that should sort it 🙂