Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Can't set value of Selectivity instance #281

Open
vince83110 opened this issue Jul 7, 2020 · 0 comments
Open

Can't set value of Selectivity instance #281

vince83110 opened this issue Jul 7, 2020 · 0 comments

Comments

@vince83110
Copy link

I use last version of Selectivity.

I just want to set the value of a multiple Select, here is my code :

$('#informations_InvitationsRendezVous').selectivity({
        multiple: !0,
    });

document.getElementById('informations_InvitationsRendezVous').value = 2;

$('#informations_InvitationsRendezVous').selectivity('value', [1, 2]);
$('#informations_InvitationsRendezVous').selectivity('open');

Here is the fiddle : https://jsfiddle.net/4g8m5dnx/

It doesn't set the value, it does nothing. I tried many ways.

How can I simply set the value(s) ?
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant