oscarotero / form-manager

PHP library to create and validate html forms
MIT License
153 stars 42 forks source link

How to add class attribute to the input label? #90

Closed sennopratama closed 3 years ago

oscarotero commented 3 years ago

You can access to the label by $input->label. So $input->label->setAttribute("class", "your-class-name") should work.