Control initial enabled state for ASP.NET dependent controls that are enabled/disabled by jQuery
<p>So far, I've seen (and I'm using the following) scripts to show/hide a div or other controls depending on another control in ASP.NET</p>

<pre><code>$('[id$=myRadio_0]').click(function() { $('[id$=myDiv]').show(); });

$('[id$=myRadio_1]').click(function() { $('[id$=myDiv]').hide(); });
</code></pre>

<p>and of course, my div in html like</p>

<pre><code>&lt;div id="myDiv" runat="server" visible="false"&gt;
</code></pre>

<p>and that works fine when the user selects either option of the radiobuttonlist.</p>

<p>However, when I assign that radiobuttonlist a value of 1 or yes on my Page_Load on code behind, that isn't (and probably can't be) caught by jQuery, and my div remains invisible even though the control has a value of Yes/1.</p>

<p>So, do I need to set the visibility of that div from code behind, or is there a way in jQuery to force a scan of these dependencies after i've set the values for the main controls in code behind?</p>
