Home  >  Article  >  Web Front-end  >  jquery获取焦点和失去焦点事件代码_jquery

jquery获取焦点和失去焦点事件代码_jquery

WBOY
WBOYOriginal
2016-05-16 17:36:06860browse
input失去焦点和获得焦点
鼠标在搜索框中点击的时候里面的文字就消失了。
我们在做网站的时候经常会用到搜索框的获得焦点和失去焦点的事件,因为懒,每次都去写非常的烦,于是就一劳永逸,遇到类似情况就来调用一下就OK 了

相关js代码:
复制代码 代码如下:




input失去焦点和获得焦点jquery焦点事件插件 - 懒人建站








input失去焦点和获得焦点jquery焦点事件插件,
鼠标在搜索框中点击的时候里面的文字就消失了





jquery获取和失去焦点事件
复制代码 代码如下:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn