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
Post a Comment