 <pre><code>$(document).ready(function() { var $submit = $("#submit_prog").hide(), $cbs = $('input[name="prog"]').click(function() { $submit.toggle( $cbs.is(":checked") ); }); }); </code></pre> <p>Demo: <a href="http://jsfiddle.net/QMtey/1/" rel="nofollow">http://jsfiddle.net/QMtey/1/</a></p> <p>The <a href="http://api.jquery.com/toggle/#toggle-showOrHide" rel="nofollow"><code>.toggle()</code> method</a> accepts a boolean for whether to show or hide.</p>