36
rated 0 times
[
38]
[
2]
/ answers: 1 / hits: 5177
/ 9 Years ago, thu, june 11, 2015, 12:00:00
I'm using a form-generator package and unfortunately it doesn't allow me to wrap the words HDR Photography in any tags. I'm too heavily invested in this package to abandon it.
I need to have this label bolded when the input box is checked though using jQuery or CSS.
The HTML shown below CANNOT be changed due to the form-generator package other than adding classes to the input
tag.
<div class=checkbox>
<label>
<input type=checkbox value=true class=track-order-change label-to-bold-if-checked name=servicesSelected.hdrPhotos.selected>
HDR Photography
</label>
</div>
On a sidenote, why does Bootstrap 3 have the <input>
tag nested INSIDE the <label>
tag? It's not a label! It doesn't make any semantic sense.
More From » jquery