jQuery: Display a message when the focus is removed from an element
jQuery Fundamental - I : Exercise-40
Display a message when the focus is removed from an element.
Note: Here object is similar to an Array of DOM Elements.
<body> <p>PHP Tutorial</p><b>w3resource</b> <button id="button1">Click to see the effect</button> </body>
Sample solution :
HTML Code :
JavaScript Code :
Used Methods :
- .blur() : Attach a handler to an event for the elements.
Contribute your code and comments through Disqus.
Previous: Demonstrate how to handle click and double-click on a paragraph.
Next: Find all button inputs and mark them using jQuery.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.