Jquery: Show/Hide Dropdown and button based on checkbox selection
<p>What I am trying to do is: </p>

<p>if one or more checkboxes are selected, display <code>cboResearch</code> and <code>btnResearch</code></p>

<p>The tricky part to me is that the check box names are based on a loop.  So, to summarize, I'd like to have that:</p>

<ul>
<li>If one or more boxes are checked, display dropdown menu and button</li>
<li>If all check boxes are unchecked, hide dropdown menu and button</li>
</ul>

<p>I have provided everything but the recordset code below - hopefully it will suffice for the crux of the question.</p>

<pre><code>&lt;head&gt;
    &lt;!--Jquery drop down menu add-on--&gt;
    &lt;script type="text/javascript" src="../js/jquery-1.6.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="../js/jquery.dd.js"&gt;&lt;/script&gt;
    &lt;script language="javascript"&gt;
        $(document).ready(
        function() {
            //JQuery code for drop-down menus  
            try {
                oHandler = $(".mydds").msDropDown().data("dd");
                $("#ver").html($.msDropDown.version);
            } catch (e) {
                alert("Error: " + e.message);
            }
        });

        //Function to select all check boxes.
        $(function() {
            $('.checkall').click(function() {
                $(this).parents('fieldset:eq(0)').find(':checkbox').attr('checked', this.checked);
            });
        });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form&gt;
        &lt;fieldset&gt;
            &lt;p&gt;Select All
                &lt;input type="checkbox" name="cbSelectAll" id="cbSelectAll" class="checkall"&gt;
            &lt;/p&gt;
            &lt;% Dim iX iX=0 Do While Not RS.EOF iX=i X + 1 %&gt;
                &lt;p&gt;
                    &lt;input type="checkbox" name="cbSelection&lt;%=iX%&gt;" id="cbSelection&lt;%=iX%&gt;"
                    /&gt;
                &lt;/p&gt;
            &lt;% RS.MoveNext Loop %&gt;
            &lt;p&gt;
                &lt;select name="cboResearch" id="cboResearch"&gt;
                    &lt;option value="1"&gt;option1&lt;/option&gt;
                    &lt;option value="2"&gt;option2&lt;/option&gt;
                &lt;/select&gt;
            &lt;/p&gt;
            &lt;p&gt;
                &lt;input name="btnResearch" type="button" class="button" value="Research" /&gt;
            &lt;/p&gt;
        &lt;/fieldset&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>
