John Davidson

php - I need a multi selection on dropdown

0 comments
Message:


I need multi selection on dropdown. There are dropdown


<?= $form->field($model, 'referal_id')->dropDownList(
ArrayHelper::map(User::find()->all(),'id','fullname'),
['prompt' => 'Select Referal...']
) ?>


My Answer:
options that allow users to select multiple items at once. This can be achieved by using the "multiple" attribute in the






In this example, users can hold down the Ctrl key (or Command key on Mac) while clicking on the options to select multiple items. Alternatively, users can click and drag to select multiple items at once.

Rate this post

3 of 5 based on 5519 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us