We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Add a css class to a select box generated via tag / volt

I presently have: {{ select('make', makes, 'using': ['Make'],'useEmpty': true, 'emptyText': 'Select a Make', 'emptyValue': '@') }}

I want to add a css class to the generated select. How do I do it? Which is the best way to do it?

Thanks in advance: Jonathan



1.2k
Accepted
answer

found the answer: {{ select('makes', makes, 'using': ['Make'],'useEmpty': true, 'emptyText': 'Select a Make', 'emptyValue': '@', 'class':'api-select') }}

Thanks All