Hi Feral,
I've been giving jquery a go and I hope you can help with the syntax I need to get this to work! So far I have been able to use the onchange event with jquery to show a hidden div. What I need to do now is specify to load a certain div, depending on which option has been selected from the select box.
Here is the code I have now:
Code:
$(document).ready(function(){
$("select").change(function () {
$("tr#colYellow").show()
})
});
HTML Code:
<select name="product[]" class="categorymenu">
<option id="colYellow" value="Yellow">Yellow</option>
<option id="colBlue" value="Blue">Blue</option>
<option id="colWhite" value="White">White</option>
</select>
Code:
<tr id="colYellow" style="display: none;">
<td>stuff</td>
</tr>
Note: I had to use the TR element to show/hide rather than a DIV as this content is in the middle of a table, and show/hide doesnt work if you have table elements inside the div to be hidden!
I hope you can help with this as I know that I am so close to getting it done!