Click Label, Set Radio Button

26. March 2012 jQuery, UI Stuffs 0
if($(\'.RadioLabel\')[0]){ $(\'.RadioLabel\').css(\'cursor\', \'pointer\'); $(\'.RadioLabel\').click(function(){ $(this).parent().find(\'.FormRadio\').attr(\'checked\', true); }); } So, i have a div (.RadioWrapper)  with a radio button (.FormRadio) and a <p> tag (.RadioLabel).  I attach this click event to the label, which calls to the parent of both items to find the associated radio button with class ‘FormRadio’ and sets it to checked. I ...

Lesscss

Something Cool I found Check it out!! LESS extends CSS with dynamic behavior such asvariables, mixins, operations and functions. LESS runs on both the client-side (Chrome, Safari, Firefox) and server-side, with Node.js and Rhino. ~lesscss.org