15q88g
Last Updated: February 25, 2016
·
7.698K
· andreia
Mesr

Symfony2 Forms: Easiest way to add an * to required field labels

By default, required field labels are rendered with the "required" class. To add an asterisk in these labels, just add the following in your stylesheet:

.required:after {
    content: "*";
}
Say Thanks
Respond

2 Responses
Add your response

12701
11fc3dc89e347224df2938cb4e3fc505

Thanks a lot! This is so simple and definitely effective.

over 1 year ago ·
22118
395037728421 256  1
over 1 year ago ·