 <p>I broke it down a bit for clarity, but this should do the trick.</p> <pre><code>$("#checkbox_1").click(function() { var checked = $("#checkbox_1").attr("checked"); var selectVal; if (checked) selectVal = 1; else selectVal = "All"; $("#dropdown").val(selectVal); }); </code></pre>