For the same (colorpicker), I used a different approach, and I think it is easier. Just replace the form with a list of buttons and build 1 function in which you pass the color. this is something like this:
<li class="color-box"><button type="button" class="color-btn" style="background-color:#BDC3C7;" onclick="wFontColour('#BDC3C7')"></button></li>
then in your function you do everything you need with this color, in my case it looks like this:
function wFontColour(fontColour) { document.execCommand("foreColor", false, fontColour); };
if you want to keep your approach, give the shortcut an identifier and try the following:
$('#myLabel').each('click', function(){ $(this).closest('input:radio').attr('checked', 'checked'); });
Spluf source share