|
you just need to refine your selector for p tags to fit the appropriate
parent element lots of ways to do this if the p tags are in the .box div you are hovering change: $("p").css('color','#fff')
to
$(this).find("p").css('color','#fff')A more flexible way to do this would also be to addClass on hover, remove class on out, then define your style in css sheet. In my mind is much easier to make modifications this way CSS .newClass {//set css properties} .newClass p{//set css properties} Jacques Choquette - WhistlerGraphicDesign.com wrote: I have the following code |
- [jQuery] How to target chang... Jacques Choquette - WhistlerGraphicDesign.com
- [jQuery] Re: How to tar... Charlie

