Jquery link to DIV class not ID
Really simple question. My code was like this:
$(function(){ $("#container div a").hover(function(){ ...
With the focus being on a DIV with ID = container. Now my DIV needs to have a class, not an ID. Can I use the code like it is below for this, with the class name container instead?
Code:
$(function(){ $(".container div a").hover(function(){ ...