This seems simple enough, but I can't find how to do this anywhere on any forum.
I have a table of cells that have a schedule of classes. There are 8 buttons above the table that when pressed I want the cells to highlight in a corresponding fashion. For instance, when the "HS Boys" button is pressed, I'd like for the 2 cells that say [HSB], the 2 cells that say [HSB & MSB], the one cell that says [All Boys] and the one cell that says [All Teams] to all highlight with a black background and yellow text while the other cells all dim to a gray background with white text.
If anyone can help, I'd be extremely grateful. Thank you.
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script>
$(function() {
$( "#radiox" ).buttonset();
});
</script>
<style type="text/css">
body {
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
font-size: 62.5%;
}
.time{
color: #cccccc;
font-size:10px;
float:left;
font-family:arial;
}
.one {
background: #0000ff url(http://zurb.com/blog_uploads/0000/0617/alert-overlay.png) repeat-x;
display: inline-block;
padding: 1px 1px 1px 5px;
letter-spacing:2px;
color: #ffffff;
font-size:12px;
vertical-align:top;
text-align:center;
FONT-WEIGHT:300px;
text-decoration: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
text-transform:uppercase;
font-family:arial;
}
.two{
background: #990000 url(http://zurb.com/blog_uploads/0000/0617/alert-overlay.png) repeat-x;
display: inline-block;
padding: 1px 1px 1px 5px;
letter-spacing:2px;
color: #ffffff;
font-size:12px;
vertical-align:top;
text-align:center;
FONT-WEIGHT:300px;
text-decoration: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
text-transform:uppercase;
font-family:arial;
}
.three{
background: #333333 url(http://zurb.com/blog_uploads/0000/0617/alert-overlay.png) repeat-x;
display: inline-block;
padding: 1px 1px 1px 5px;
letter-spacing:2px;
color: #ffffff;
font-size:12px;
vertical-align:top;
text-align:center;
FONT-WEIGHT:300px;
text-decoration: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer;
text-transform:uppercase;
font-family:arial;
}
</style>
<form style="float:left; margin-top:30px;">
<div id="radiox">
<input type="radio" name="grade" id="1" value="1" checked/><label for="1" style="width:145px;">Entire Schedule</label>
<input type="radio" name="grade" id="2" value="2" /><label for="2" style="width:120px;">HS Boys</label>
<input type="radio" name="grade" id="3" value="3" /><label for="3" style="width:120px;">HS Girls</label>
<input type="radio" name="grade" id="4" value="4" /><label for="4" style="width:120px;">MS Boys</label>
<input type="radio" name="grade" id="5" value="5" /><label for="5" style="width:120px;">MS Girls</label>
<input type="radio" name="grade" id="6" value="6" /><label for="6" style="width:120px;">Elem Boys</label>
<input type="radio" name="grade" id="7" value="7" /><label for="7" style="width:120px;">Elem Girls</label>
<input type="radio" name="grade" id="8" value="8" /><label for="8" style="width:120px;">Future Stars</label>
</div>
</form><br><br><br><br><br><br>
<table style="border:0px solid black;" cellpadding=0 cellspacing=0 width="1000">
<tr height="40" style="background:black;color:white; text-align:center; font-family:arial; font-size:12px;">
<td width="14%">SUNDAY</td>
<td width="14%">MONDAY</td>
<td width="14%">TUESDAY</td>
<td width="14%">WEDNESDAY</td>
<td width="14%">THURSDAY</td>
<td width="14%">FRIDAY</td>
<td width="14%">SATURDAY</td>
</tr>
<tr height="60">
<td class="three"><span class="time">8am</span><br><br>ALL TEAMS</td>
<td class="three"><span class="time">6pm</span><br><br>BOYS ONLY</td>
<td class="two"><span class="time">6pm</span><br><br>MSB</td>
<td class="two"><span class="time">6pm</span><br><br>MSG</td>
<td class="two"><span class="time">6pm</span><br><br>HSB</td>
<td class="three"><span class="time">6pm</span><br><br>GIRLS ONLY</td>
<td class="one"><span class="time">8am</span><br><br>ESB & ESG</td>
</tr>
<tr height="60">
<td class="one"><span class="time">9am</span><br><br>ESB @ ESG</td>
<td class="two"><span class="time">7pm</span><br><br>ESG</td>
<td class="two"><span class="time">7pm</span><br><br>HSB</td>
<td class="one"><span class="time">7pm</span><br><br>ESB & ESG</td>
<td class="two"><span class="time">7pm</span><br><br>MSG</td>
<td class="two"><span class="time">7pm</span><br><br>ESB</td>
<td class="one"><span class="time">9am</span><br><br>HSB & MSB</td>
</tr>
<tr height="60">
<td class="three"><span class="time">10am</span><br><br>FUTURE STARS</td>
<td class="one"><span class="time">8pm</span><br><br>HSG & MSG</td>
<td class="two"><span class="time">8pm</span><br><br>HSG</td>
<td class="two"><span class="time">8pm</span><br><br>MSB</td>
<td class="two"><span class="time">8pm</span><br><br>HSG</td>
<td class="one"><span class="time">8pm</span><br><br>HSB & MSB</td>
<td class="one"><span class="time">10am</span><br><br>HSG & MSG</td>
</tr>
</table>