w3tr: <input type="checkbox" name="w3tr" value="w3tr"><br>
w3tr: <input type="checkbox" name="w3tr" value="w3tr"  checked="checked"><br>
$(":checked").wrap("<span style='background-color:yellow'>");

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js