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" />
$('').live('click', function(e){
        if( $(e.target).is(':input') ) return;
        var i = $(':input[name="' + $(this).attr('for') + '"]')
        i.is(':') ? i.attr('checked', !i.attr('checked') ) : i.focus().();
    })