<input type="checkbox" /><input type="button" onclick="if(this.previousSibling.checked)alert('checked')" value="go">