Home > Web Front-end > JS Tutorial > body text

Jquery focus and loss of focus sample application_jquery

WBOY
Release: 2016-05-16 16:45:14
Original
946 people have browsed it
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!