This is a simplified version of my html:
<li>
<a href="#" data-src="song Name.mp3">
<img src="front.jpg">Song Name.mp3</a>
<div class="hidden album">Album Name</div>
<div class="hoverdir">Path to album directory</div>
<div class="hidden artist">Artist Name</div>
</li>
At the moment if "a" has focus, .hoverdir is shown. I'm using:
.hoverdir {display: none;}
a:focus ~ .hoverdir {display: block;}
in my css to achieve this and it's working fine.
I want to be able to replace some text contained in the hoverdir, but I can't figure out the right selector in jquery.
There are loads of these that are dynamically created that I need to replace part of the text in it if certain conditions are met. This one is just an example.
Any help would be greatly appreciated.
hoverorfocusevent handler, depending on what your desired behaviour is.