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

How to use $().hover(func1, funct2) in jquery_jquery

WBOY
Release: 2016-05-16 17:52:53
Original
1139 people have browsed it

Because hover is not a standard event, it cannot be processed directly using live. Therefore, the following method is used instead, with the same effect.

Copy code The code is as follows:

$("table tr").live({
mouseenter:
function()
{
//todo
},
mouseleave:< ;/SPAN>
function()
{
//todo
}
});

In the loop output
, when only the content under a certain
is processed: You can use $(this).find() to achieve this:
Copy code The code is as follows:


water">
action" style="< SPAN style="COLOR: #3366ff">display:none">
{lang user/repick}

{lang user/reply}



water">
< div class="action" style="display:none">
{lang user/repick}

{lang user/reply}



water">
action " style="display:none">
{lang user/repick}

{lang user/ reply}



water">
action" style="display:none">
{lang user/repick}
{lang user/reply}






Related labels:
source:php.cn
Statement of this Website
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
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!