jQuery blur()

The jQuery blur() event triggers the blur (element loses focus) event. Syntax: To trigger the blur event. $(selector).blur() To add a function to the blur event. $(selector).blur(function) Function: It is an optional parameter that is used to specify the function to run after the event occurs. Example1: <!DOCTYPE html> <html> head> <script src=”https://code.jquery.com/jquery-1.10.2.js”></script> <script> $(document).ready(function(){ … Read more