This is a better way.
$('span').click(function() {
$(this).find('input').attr({checked:"checked"});
});
Just keep in mind that you are adding a click event to all spans. Better would be to have a class on the span and reference that.
$('.myClickySpan')...
...