Timeline for .is(":hover") is broken as of jQuery 1.9 How to fix
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 28, 2018 at 0:50 | comment | added | Mooseman |
@konsolebox The original post talks about selecting and filtering to return a jQuery object, then considering the length property per "has length 1".
|
|
Jun 27, 2018 at 12:20 | comment | added | konsolebox |
.filter(:hover) seems to always return an object, and filter(:hover).length works. Please consider updating.
|
|
Mar 12, 2017 at 6:00 | comment | added | Kareem | Not always possible when you want to check elements with global classes and no ids. $(this) not possible to ":hover" in selector! | |
Mar 1, 2017 at 16:15 | comment | added | Legends |
Doesn't work in jQuery 3.1.1... I try $('#myid:hover').length > 0 in an event handler.
|
|
Mar 30, 2015 at 17:23 | history | edited | Mooseman | CC BY-SA 3.0 |
added 75 characters in body
|
Mar 14, 2015 at 3:58 | comment | added | mathheadinclouds | then, use var temp = $(yourElement).parent().find(":hover"); return temp.length == 1 && temp[0] == yourElement; | |
Feb 1, 2014 at 1:36 | comment | added | t q |
how about when using $(this) or a variable object?
|
|
May 11, 2013 at 13:52 | vote | accept | mathheadinclouds | ||
May 11, 2013 at 13:14 | history | answered | Mooseman | CC BY-SA 3.0 |