Created
October 17, 2016 07:09
-
-
Save jthmiranda/7f0d9e2d6c239324508b7d59c9f8de30 to your computer and use it in GitHub Desktop.
uso para expresar campo requerido al usuario
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group required"> | |
<label class="col-md-2"> </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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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