selecting a radio by clicking a div
<p>I wish to be able to click on a div and have it select a radio button.  I have it working in webkit...but not FF.</p>

<p>The full example can be found here:</p>

<p><a href="http://acgidev.acgisoftware.com/clicktest2.html#" rel="nofollow">http://acgidev.acgisoftware.com/clicktest2.html#</a></p>

<pre><code>&lt;div class="aaEcmTemplateThumbWrapper"&gt;
     &lt;div class="aaEcmTemplateTitle"&gt;&lt;input type="radio" tabindex="4" class="aaEcmMsgRadio" value="EC_ORDER_CONFIRMATION" name="p_template_message_id"&gt;EC Order Confirmation
&lt;/div&gt;
     &lt;div class="aaEcmTemplateThumb"&gt;&lt;a class="aaIframePopup" href="#"&gt;&lt;span class="aaMagGlass"&gt;&lt;/span&gt;&lt;/a&gt;
     &lt;/div&gt;
&lt;/div&gt;
&lt;div class="aaEcmTemplateThumbWrapper"&gt;
     &lt;div class="aaEcmTemplateTitle"&gt;&lt;input type="radio" tabindex="4" class="aaEcmMsgRadio" value="EC_ORDER_CONFIRMATION" name="p_template_message_id"&gt;EC Order Confirmation
&lt;/div&gt;
     &lt;div class="aaEcmTemplateThumb"&gt;&lt;a class="aaIframePopup" href="#"&gt;&lt;span class="aaMagGlass"&gt;&lt;/span&gt;&lt;/a&gt;
     &lt;/div&gt;
&lt;/div&gt;
&lt;div class="aaEcmTemplateThumbWrapper"&gt;
 &lt;div class="aaEcmTemplateTitle"&gt;&lt;input type="radio" tabindex="4" class="aaEcmMsgRadio" value="EC_ORDER_CONFIRMATION" name="p_template_message_id"&gt;EC Order Confirmation
&lt;/div&gt;
     &lt;div class="aaEcmTemplateThumb"&gt;&lt;a class="aaIframePopup" href="#"&gt;&lt;span class="aaMagGlass"&gt;&lt;/span&gt;&lt;/a&gt;
     &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>And the jquery I am using is:</p>



<pre><code>    &lt;script type="text/javascript"&gt;
    //check on div click
$("div.aaEcmTemplateThumbWrapper").live("click",function(event) {
    var target = $(event.target);
    if (target.is('input:radio')) return;

    var checkbox = $(this).find("input[type='radio']");

    if( checkbox.attr("checked") == "" ){
       checkbox.attr("checked","true");
    } else {
       checkbox.attr("checked","");
    }
    $("div.aaEcmTemplateThumbWrapper").click(function () {

        $('input:radio').attr('checked',false);

    });   
});

&lt;/script&gt;
</code></pre>
