Test Case Boilerplate
Fork this way...
HTML
<span class="check_next">Test</span> <input id="input" type="checkbox" name="test">
JavaScript
$('.check_next').click(function() {
$(this).next().click();
});
$('#input').click(function() {
if($(this).attr('checked')) {
alert('test');
}
});