title: dependendt dropdownlist in yii2
body: <pre><code>&lt;?= $form-&gt;field($model, 'fk_int_category_id')-&gt;dropDownList(
              ArrayHelper::map(TblCategory::find()-&gt;all(), 'pk_category_id','vchr_category_name'),
              ['prompt'=&gt; 'Select a category',
               'onchange'=&gt;'
                      $.post("index.php?r=product-size-variants/get-sub-category&amp;id='.'"+$(this).val(), function(data){
                          //alert(data);
                              $("select#tblproduct-fk_int_sub_category_id").html(data);
                      });',       
              ]) ?&gt;
  
      &lt;?= $form-&gt;field($model, 'fk_int_sub_category_id')-&gt;dropDownList(
              ArrayHelper::map(TblSubCategory::find()-&gt;all(), 'pk_sub_category_id','vchr_sub_category_name'),
              ['prompt'=&gt; 'Select Sub category'
                'onchange'=&gt;'
                      $.post("index.php?r=product-size-variants/get-sub-category&amp;subId='.'"+$(this).val(), function(data){
                          //alert(data);
                              $("select#tblproduct-fk_int_sub_category_id").html(data);
                      });'  
              ]) ?&gt;
  
      &lt;?= $form-&gt;field($model, 'fk_int_product_variants')-&gt;dropDownList(
              ArrayHelper::map(TblProductSizeVariants::find()-&gt;all(), 'pk_int_product_size_variants_id','vchr_size_names'),
              ['prompt'=&gt; 'Select Product Size']) ?&gt;
  </code></pre>
  
  <p>i have three dropdownlist In second dropdownlist work using first one,
  and third dropdownlist dependent to 1st and 2nd dropDown.
  how to i pass 2 values in this index.php?r=product-size-variants/get-sub-category&amp;subId= url??? of second dropdown</p>