- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › jquery selecting class with $(this) problem?
Hi there,
i have a little problem i ultimately want to solve. I’m building a little jquery color-hover-effect for my index-page in WordPress. I just want to animate the Title of the Blogposts on mouseover and mouseout. Works actaully great, however i have one little problem.
As a matter of fact the post-class with the Title in it i’m working in with jquery gets multiplicated like 10 times on the index of my blog. Like any normal blog. Unfortunatley my title element consists of a div-element that carries a span-element with the actual title in it. So the one and only problem is, that i want to set the function to the DIV-element and animate ONLY the SPAN-element inside of it.
So if do this piece of code…
…all span-elementes with the .h1-class get animated at the same time.
Of course i don’t want that. However if i do this…
…my whole div with the class .complete_highlight_link gets another background-color. In this case only the current-hoverd element gets animated, so with "this" it would kind of work, however i don’t want to animate the whole div but the span inside of it.
So now my question:
Is there any way of doing kind of this?
How can i solve that problem??
thank you
It’s working!
awesome work – well done :D