Jump to content
  • Sign Up
  • 0

Выпадающий список - выбор нескольких вариантов


yadm

Question

Здравствуйте.

Прошу не смеяться, если вопрос покажется некомпетентным, я не разработчик, но иногда приходится решать мелкие вопросы по работе сайта.

Возможно, задача не такая сложная и с вашей помощью получится ее решить.

Есть выпадающий список в котором можно выбрать только один вариант из предложенных. Можно ли, не прибегая к большим ухищрениям, сделать возможность выбирать несколько вариантов одновременно? В списке 6 вариантов для выбора. 

код этого элемента сейчас выглядит так

 <?php if( $hide_add_prop_fields['prop_label'] != 1 ) { ?>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label for="prop_labels"><?php echo $houzez_local['prop_label'].houzez_required_field( $required_fields['prop_labels'] ); ?></label>
                            <select name="prop_labels" id="prop_labels" class="selectpicker" data-live-search="false" data-live-search-style="begins">
                                <?php houzez_get_taxonomies_for_edit_listing( $prop_data->ID, 'property_label'); ?>
                            </select>
                        </div>
                    </div>
                <?php } ?>

Либо простым путем пойти не получится и нужно делать проверку выбранных вариантов либо вообще сделать чекбокс?

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Еще раз спасибо! Все очень просто получилось. После

class="selectpicker"

поставила multiple и все работает как надо!
 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy