In a form on index.php I post using AJAX to the submit.php file. Everything is working ok but I want to return in a special div in index.php with id #remaining a text like below.
How do I tell submit.php that this one message must be placed in the <div id="remaining"></div> of index.php ?
if($rem_posts<1)
{
echo "No credits, please buy credits";
}
else
{
You can use the $.load function.