Something like this:
$("#wrapper > *").hover( ... );
The > lets you select all child elements, which is what you want. Enjoy!
--John
> How can I attach the hover event to all elements in another element?
>
> For example:
>
> <div id="wrapper">
> <h1>Hello</h1>
> <p>Test hello</p>
> </div>
>
> I want to add the .hover event to <h1> and <p> within the <div
> id="wrapper">. The amount of elements could obviously change.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/