Conditional JQuery dropdown for search function
<p>I'm building a search function in jQuery. I have 3 dropdowns that are loaded from a MySQLdatabase. When a user selects 1 of the dropdowns it has to affect the other dropdown values.</p>

<p>I made it working for the seperate values but I'm stuck when they select 2 or 3 dropdowns. I worked with the &amp;&amp; operator but this doesn't work. Can someone please take a look what im doing wrong?</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
    if( $(("#IndID").change) &amp;&amp; $(("#CatID").change)) {
    $("#ProdName").load("scriptp.php?c3=" + $("#IndID").val() + $("#CatID").val());
    }

        if( $(("#IndID").change) &amp;&amp; $(("#ProdName").change)) {
        $("#CatID").load("scriptc.php?c=" + $("#IndID").val() + $("#ProdName").val());
    }

        $("#IndID").change(function() {
        $("#CatID").load("scripti.php?c=" + $("#IndID").val());
        });

        $("#CatID").change(function() {
            $("#ProdName").load("script.php?cc=" + $("#CatID").val());
        });

    });
&lt;/script&gt;
</code></pre>
