title: Is it possible to redirect using dropdown onchange using value as parameter?
body: <p>Using Yii2 I have the following code which displays a dropdown with my list of categories.</p>
  
  <p>I was wondering is it possible so that on change the action executed is localhost:8888/article/category?id=1 rather that what it is atm (localhost:8888/article/category).</p>
  
  <p>Does this require AJAX and/or JS or can it be done just using php?(id prefer php) </p>
  
  <pre><code>&lt;?php $form = ActiveForm::begin(['id' =&gt; 'category-form', 'action' =&gt;   
  '/advanced/article/category',]); ?&gt;
  
   &lt;?= $form-&gt;field($model, 'category')-&gt;dropDownList($model-&gt;categoryList,[
  
  'prompt'=&gt;'Select Category to view',
  'onchange'=&gt;'this.form.submit()'
  
  ]) ?&gt;
  
  &lt;?php ActiveForm::end(); ?&gt;
  </code></pre>