Skip to content

Is there any way how to change selection through jQuery #12

Open

Description

@flackey-91

I have a edit modal, and I need to preset value through jQuery

Activity

  1. jlcuilty commented on Jan 19, 2023

    @jlcuilty

    Maybe this help you:
    dselect(document.querySelector('#inputMunicipio'), {search: false})
    $("#inputMunicipio").val('Todos').change();
    dselect(document.querySelector('#inputMunicipio'), {search: true})

  2. Infomaquina commented on Oct 26, 2023

    @Infomaquina

    Excellent. I really needed this solution. I like Dselect in bootstrap 5. Much better than Select2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions