<table border=0 cellPadding=5 cellSpacing=0 width=100%>
<tr>
<td colSpan=5 align=center><a href="index.html" title="Home"><img src="theImages/logoAlone.png" /></a></td>
</tr>
<tr>
<td colSpan=5 height=15></td>
</tr>
<tr>
<td width=18% class=fdBBorder id=type1><A href="findDoctors.html">Find A Doctor</a></td>
<td width=18% class=fdBBorder id=type2><A href="patSvc.html">Patient Services</a></td>
<td width=18% class=fdBBorder id=type3><A href="mapNDir.html">Maps & Directions</a></td>
<td width=18% class=fdBBorder id=type4><A href="trainProgs.html">Training Programs</a></td>
<td width=18% class=fdBBorder id=type5><A href="aboutUs.html">About Us</a></td>
</tr>
<tr>
<td align=left valign=top id=type11>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Doctor's List</a></div>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Staff Highlight</a></div>
</td>
</tr>
<tr>
<td align=left valign=top id=type22>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Doctor's List</a></div>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Staff Highlight</a></div>
</td>
</tr>
</table>
My question is if i hover over Find a Doctor, i want that TD to change bgColor and also the bgColor for TD id type22, pretty much change multiple TD background color when you put your mouseover on type1?
How do i create a jquery for that?
I have this but this changed the color onload:
$(document).ready(function(){
$("#type1").css("background-color", "red");
$("#type11").css("background-color", "red");
});
But i want this to be on hover.
Thanks
Please look at this similar question. Your solution will be like:
Check it out this demo
UPDATED
Since you asked me how to two different id to do same mouseover functions. You will need it to be an external function. Something like:
See demo here