Home >Web Front-end >JS Tutorial >Jquery focus and loss of focus sample application_jquery

Jquery focus and loss of focus sample application_jquery

WBOY
WBOYOriginal
2016-05-16 16:45:14971browse
Copy code The code is as follows:

$(function(){
$("#input" ).focus(function(){//#input replaced with the ID of your input
//Write here the code that runs after getting focus.
}).blur(function(){
// $(".scroll-question").css("display","none");
});
})

})

live It is only supported by 1.4. The following IE and Firefox are fine
Copy the code The code is as follows:


< ;html xmlns="http://www.w3.org/1999/xhtml">


Untitled Document