This topic contains 3 replies, has 2 voices, and was last updated by Sean Sean 1 year, 11 months ago.

Problem with select2 plugin


  • CharlieClewer
    Participant

    Posts: 1
    Member Reply #9629

    Good morning,

    I’m trying to use select2 but i can’t get it working. I’ve check all the documentations, and forums topics with that information, but I still can’t get it working. This is the code I have:

    <script>

    $(document).ready(function() {

    $(‘#academy_list’).select2({

    placeholder: ‘test’,

    width: ‘auto’,

    allowClear: true

    });

    });

    </script>

    <div class=”form-group”>

    <label class=”control-label visible-ie8 visible-ie9″>Academia</label>

    <select name=”academia” id=”academy_list” class=”form-control” required>

    <option></option>

    <option value=”Bor”>Bormujos</option>

    <option value=”Bol”>Bollullos de la Mitación</option>

    </select>

    </div>

     

    Is there anything wrong?

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #9649

    Hi,

    Can you provide us a test link to your developing site in a private reply ? We will need to check your code online and see possible errors in the browser console in order to investigate the issue.

    Thanks.


    CharlieClewer
    Participant

    Posts: 1
    Member Reply #9650

    Sorry but I can’t find a way to send a private reply. Could you tell me how?

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #9671

    Hi

    If you are able to deploy your developing site to a test hosting server you can do so. Otherwise please check your browser console(user chrome and check the console CTRL+SHIFT+J) and refer to the JS errors on your page. If you need any further help please send us the console screenshot and we will try to investigate it

    Thanks.

Tagged: 

You must be logged in to reply to this topic.