Hi All,
Im kinda new to Jquery, so this might be easy, then again i cant seem to find anything on Google. So here goes.
I basically have this:
<div>
<div id="row1" class="col1" onMouseOver="OnMouseOver(11)">
I dont want to select this
</div>
<div id="row1" class="col2" onMouseOver="OnMouseOver(12)">
I want to select this
</div>
<div id="row2" class="col1" onMouseOver="OnMouseOver(21)">
I dont want to select this
</div>
<div id="row2" class="col2" onMouseOver="OnMouseOver(22)">
I dont want to select this
</div>
</div>
and i want to select just the one div(eg. #row1 .col2) to change the css background image, but i cant get it to work. As it is i have a switch/case block that chooses which div to select.
i have tried different variaties of this selection:
$('#row1').find(".col1").css('background-image', 'url(Images/LosCol1Over.png)')
also
$('#row1','.col2').css('background-image','url(Images/LosCol1Over.png)')
and several other combi i can remember
I think the problem is compounded(or confounded maybe :D) by the fact that the columns have the same background-image and this is set in the css by
.col1{
background-image: url(Images/LosCol1.png)
}
.col2{
background-image: url(Images/LosCol1.png)
}
Any ideas?