我正在尝试通过单击旁边的按钮来检查复选框。
<p class="label">NSFW?: </p><br />
<p>
<input id="cb" type="checkbox" name="nsfw" />
<span id="nsfwbtn" class="btn btn-danger" rel="tooltip" title="Not Safe For Work (18+)" >
This image is not safe for work.
</span>
</p>
JSFiddle:http: //jsfiddle.net/PGCYX/