# Please tell me how can at Zend Form -\> formSelect. Highlight fields of different colors?

**URL:** <https://discourse.laminas.dev/t/please-tell-me-how-can-at-zend-form-formselect-highlight-fields-of-different-colors/1621>\
**Category:** Components & MVC\
**Tags:** zend-form\
**Created:** [May 18, 2020, 5:40pm UTC](https://discourse.laminas.dev/t/please-tell-me-how-can-at-zend-form-formselect-highlight-fields-of-different-colors/1621 "2020-05-18T17:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1112](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/1112/32/716_2.png) [@1112](https://discourse.laminas.dev/u/1112)\
**Post date:** [May 18, 2020, 5:40pm UTC](https://discourse.laminas.dev/t/please-tell-me-how-can-at-zend-form-formselect-highlight-fields-of-different-colors/1621/1 "2020-05-18T17:40:26Z")

</div>

Hello.

Please tell me how can at Zend Form -\> formSelect. Highlight fields of different colors?

Now I have made a script on JQuery. Which makes the fields colorful. But maybe there is a more elegant solution by the means Zend?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![gscscnd](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/gscscnd/32/647_2.png) [@gscscnd](https://discourse.laminas.dev/u/gscscnd)\
**Post date:** [May 21, 2020, 10:47am UTC](https://discourse.laminas.dev/t/please-tell-me-how-can-at-zend-form-formselect-highlight-fields-of-different-colors/1621/2 "2020-05-21T10:47:07Z")

</div>

Hi!

Have a look at the [documentation of the `Select` element](https://docs.zendframework.com/zend-form/element/select/). The last example presents a way of adding custom attributes to the value options.

Good luck!
