I'm trying to create a dropdown select list in Yii2 but am finding the documentation for it a bit confusing considering there are no examples.
Could someone attempt to explain it a bit better with some examples, like if I wanted to create a dropdown list like the below how would I do it?
Sample:
<select name="foo" id="bar" onchange="run()">
<option value="">Select Pet Type</option>
<option value="fish">Fish</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="lizard">Lizard</option>
</select>