I have the following HTML code:
<div id="container">
<ul>
<li><img src="#" /></li>
<li><img src="#" /></li>
</ul>
<h2>Some Text</h2>
</div>
What I want is simply to hover one of the images in the ul and thus change the text in the h2 field. It doesn’t matter if it will be done with jQuery, javascript or css, but it should be as simple as possible.
And please explain your code with comments so I can understand it!
Thank you!
Ok, jquery does this easily: