V
V
vladimirr892018-04-13 09:38:29
Laravel
vladimirr89, 2018-04-13 09:38:29

How to style select form in laravel?

There is a form in which it is necessary to select certain options through select. I have attached the form as a screenshot.
Can you tell me how should I style each element if I use Forms:: ?
For example, there is this code:

{!! Form::select('subscribe_id', array('5' => 'Демо-доступ', '6' => 'Доступ на 1 месяц 1500 руб.', '7' => 'Доступ на 3 месяца 3600 руб.','8' => 'Доступ на 1 год 12600 руб.'))!!}

How can I embed a class and a placeholder "Select subscription type" into it and then embed a class for each input so that they look like in the screenshot?
5ad04fcfad442151673655.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Nagorny, 2018-04-14
@esvils

Through a plugin like this one

{!! Form::select('subscribe_id', array(0 => 'Выберите тип подписки', '5' => 'Демо-доступ', '6' => 'Доступ на 1 месяц 1500 руб.', '7' => 'Доступ на 3 месяца 3600 руб.','8' => 'Доступ на 1 год 12600 руб.'),null,['class' => 'custom-class'])!!}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question