title: Yii2 dropdown list selected value
body: <p>I don’t understand how dropdown list works. I want to take selected value from dropdown list.</p>
  
  <p>My code looks like:</p>
  
  <pre><code>&lt;?php $form = ActiveForm::begin(['options' =&gt; ['enctype' =&gt; 'multipart/form-data']]) ?&gt;
       &lt;?= $form-&gt;field($model1, 'test')-&gt;dropDownList($items)-&gt;label(false);?&gt;
  
      &lt;button&gt;Submit&lt;/button&gt;
      &lt;?php ActiveForm::end() ?&gt;
  </code></pre>
  
  <p>where <code>$items =[‘A’,‘B’,‘C’…‘Z’];</code></p>
  
  <p>And the default displayed value for this is ‘A’, i want to change this value.</p>
  
  <p>I’ve tried with <code>$model1-&gt;test</code>, but this is not my selected value.</p>
  
  <p>Thanks!</p>