Skip to content

Instantly share code, notes, and snippets.

@jthmiranda
Created October 17, 2016 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthmiranda/7f0d9e2d6c239324508b7d59c9f8de30 to your computer and use it in GitHub Desktop.
Save jthmiranda/7f0d9e2d6c239324508b7d59c9f8de30 to your computer and use it in GitHub Desktop.
uso para expresar campo requerido al usuario
<div class="form-group required">
<label class="col-md-2">&#160;</label> <!-- remove class control-label -->
<div class="col-md-4">
<div class="checkbox">
<label class='control-label'> <!-- use this class as the red * will be after control-label -->
<input class="" id="id_tos" name="tos" required="required" type="checkbox" /> I have read and agree to the Terms of Service
</label>
</div>
</div>
</div>
.form-group.required .control-label:after {
content:"*";
color:red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment