On submit values lost
<p>I have a javascript that fires on change of radio button. On my radio button also have this code below.</p>

<pre><code>&lt;input type="radio"  name="design" style="vertical-align: middle"  value="1"   onchange="this.form.submit()"  &lt;?php if(isset($_POST['design'])){ if($_POST['design'] == 1) {echo "checked";}} ?&gt;/&gt;
</code></pre>

<p>So when this group 'design' radio buttons changes this age is submit and data is loaded depending on which radio button.</p>

<p>I also have a javascript with code below.</p>

<pre><code>$("#lensType input:radio[name='design']:checked").change(populate);
</code></pre>

<p>It fires though when a change occurs but now when the form is submit and it is loaded that execution of change is lost.  How can I retain that value or have this function execute still.</p>

<p>This function loads a combo dynamic select list depending on which radio button is selected.
At the same time the radio buttons load data on a table depending on what design it is.</p>
