...

View Full Version : Javascript div:hover



zef
08-23-2010, 11:04 AM
Hi guys.

How would I implement this css:


.story-wrap:hover .dates
This obviously allows the .dates div to react when I hover over the .story-wrap div.

How would I select the same in javascript with this code:


$(".story-wrap .dates").hover(function () {
Because currently it just reacts when .dates is hovered over.

Cheers!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum