javascript - Submit form after finished typing? -


i have form has total of 5 inputs (for user registration). i'd let user know if username they've chosen available or not without having click "submit" button.

how can submit form (using jquery , ajax) after user has finished typing in input field (like twitter does)? know can submit form on change, submit form on each letter that's typed, correct?

what should do?

use blur event ajax call. blur event sent element when loses focus

$( "#your_element_id" ).blur(function() { alert("hello world"); }); 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -