Type a random email address into my form and notice the ajax updates at the top – http://goo.gl/DwvdY
How do I put those updates directly in the input box where you typed your email address? This is driving me crazy
There is an empty div named #response that first gets filled with this JS text update:
$('response').innerHTML = 'Adding email address...';
Then that same div gets the status returned to it and a newer update is echoed with PHP.
<span id="response">
<? require_once('inc/store.php'); if($_GET['submit']){ echo storeAddress(); } ?>
</span>
it should be:
To store it the the textbox directly do this:
This should do it: