How can i retrieve data from the same table into text area. Hi am new on yii and i have created a dropdownlist for my table location(id,name,facilities) how do i retrieve details(facilities) of a location into the text box onchange in the dropdown

<?=

      

        $form->field($model, 'location_id')->dropDownList

        (ArrayHelper::map(Location::find()->asArray()->all(),'id', 'name'), [

            'prompt'=>'select venue',

            'onchange'=>

            ]);

    ?>

</div>

<div class="form-group col-md-9">

<?= $form->field($model, 'descript')->textarea(['rows' => 6]) ?>

</div>