How to optimize this jQuery code?
<p>Been tinkering with some code regarding setting the visibility of a drop down based on the selected value of another dropdown.</p>

<p>This code is for the page load:</p>

<pre><code>     $(document).ready(function() {
            if ($("#&lt;%=ddlCoverage.ClientID %&gt;").val()  == 'Basic') {
                $('#CoverageType').show();
            }
            else{
                $('#CoverageType').hide();
            }
        });
</code></pre>

<p>Here is the the other piece that I use for the changing of the dropdown.</p>

<pre><code>$("#&lt;%=ddlCoverage.ClientID%&gt;").change(function() {
                $('#CoverageType')[($(this).val() == 'Basic') ? 'show' : 'hide']()
            });
</code></pre>

<p>Is there a better way to write this?</p>
