Blur Event using JQUERY

When crusher is moved out by tag or Mouse is clicked else where then the blur event is triggered.

  • Video Tutorial on form component events

While using focus event we have seen how to execute the code when the object is in focus, now we will develop a validation code to check if any date is entered or not. If user is moved out without entering any data then we will display the message.

Here is the code
$(document).ready(function() {
var str1=$('#t1').val();
$('#d1').html('Please enter name');

var str2=$('#t2').val();
$('#d1').html('Please enter email ');


DEMO of Blur Event
Event Reference Focus Event


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here .

    Most Popular JQuery Scripts


    Two dependant list boxes


    Calendar with Date Selection


    Data change by Slider


    Show & Hide element

    JQuery Video Tutorials

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer