$('#radio1').attr('checked')'
will return you a value to set the try value
$('#myContainer li').click(function() { $('#radio1').attr('checked','checked'); });
or if you are using jquery 1.6+, use prop
$('#myContainer li').click(function() { $('#radio1').prop('checked',true); });
DMEO
in your case no matter which li you click, it will check the radio with id = #radio1
in my opinion a more appropriate behavior would be
$('#myContainer li').click(function() { $(":input",this).prop('checked',true); });
Demo
Rafay source share