Topics

use name attribute for input instead of id for use with label

you need Jquery:

< for="myinput"></>< name="myinput" type="text" value="text here" />
$('label').live('click', function(e){
        if( $(e.target).is(':') ) return;
        var i = $(':[name="' + $(this).attr('for') + '"]')
        i.is(':') ? i.attr('checked', !i.attr('checked') ) : i.focus().();
    })