Add a red asterisk for required fields

To add a red star/asterisk to a required fields can use this css

.required:after {
 content: "*";
 color: #d00;
 padding-left:1%;
}

Then in HTML use the class=”required” for the label or span

Leave a Reply

Your email address will not be published. Required fields are marked *