I have a form that I'm submitting with AJAX. A user fills out the field (called "barcode") and hits return, and the form submits.
After the form submits, they are shown a success or failure message. I want to:
- Fade out the message
- Empty the 'barcode' field
- Bring the cursor back to the field, ready for the next person.
So far I have got step 1 handled:
setTimeout(function(){ $('span.login-fail').parent().fadeOut('normal'); }, 1000);
setTimeout(function(){ $('span.login-welcome').parent().fadeOut('normal'); }, 1000);
But I do not know how to do 2 or 3. Thanks for any help!