How to make a drop down list in yii2

In this post, I would like to show you how to create a drop-down list in yii2. This tutorial will help you to display the array data or model data in the drop-down list. I am using activeForm.

Drop down list syntax

Drop down list with Array

Drop down list with prompt

Drop down list With table Model Data

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jk
jk
5 years ago

whor a

Roby Sottini
Roby Sottini
3 years ago

How can I use it without a model?

DMCA.com Protection Status
3
0
Would love your thoughts, please comment.x
()
x