Need Help with hide() function
Within a page I have a nested div surrounding two select boxes, and a select box above it:
- <select......>
- </select>
- <div id="span_14u_roster">
- .....two select boxes and other tags
- </div>
I want to hide everything in the div until the user makes a selection in the select box above it. I wrote this jquery code:
- $(document).ready(function(){
- // first, blank the two roster selection boxes until
- // the user selects a team.
- $('#span_14u_roster').hide();
- });
However, when I load the page, the div and all its children objects are still visible. What am I doing wrong?
Mark