Learning jQuery can be a slow process for beginners, but with practice and dedication, it gets easier.
I have 3 text elements in separate divs that I want to trigger the addClass function on another div when hovered over.
Although my current code works, it is not very efficient. Can someone suggest a better way to achieve this and explain the functionality of each script?
You can view the code on JSFiddle here: http://jsfiddle.net/gavAusWeb/ZYVKM/
Here is the HTML code snippet:
<div id="sideMap">
...
</code></pre>
<p>And the corresponding CSS code:</p>
<pre><code>#sideMap {
height:236px;
}
...
});
JQuery code section:
$(document).ready(function() {
/*---------------------*/
$(function() {
...
});
/*---------------------*/
/*---------------------*/
$(function() {
...
});
/*---------------------*/
});