How to get dropDownList selected value before submit in Yii2?
<p>I have a dropDownList in my form like this :</p>

<pre><code>&lt;?= $form-&gt;field($model, 'object_typeID')-&gt;dropDownList(
                ArrayHelper::map(ObjectTypes::find()-&gt;all(),'object_typeID','title'),
                [
                    'prompt' =&gt; 'Choose Object type',
                ]
            ) ?&gt;
</code></pre>

<p>and I want to load other form elements based on selected dropDownList value before submit the form so I should have selected value immediately when user select it. How to get dropDownList selected value before submit?</p>