jQuery UI Widgets Forums Lists DropDownList JQXDropDownLists with same source

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JQXDropDownLists with same source #98318

    Buggs2015
    Participant

    Hello,

    What I have on my page are a bunch of div names that are different, along with same the same element id’s that pull from the same source list

    I am loading my dropdownlists using this format below,

    var keytopics = [
    “”,
    “N/A”,
    “Academic”,
    “Accident Statistics”,
    “Accessible Vehicles”,
    “Advanced Technology”,
    ]

    var w = ‘205px’; var h = ’20px’
    $(‘div[name=”One”] #keytopic’).jqxDropDownList({source: keytopics, selectedIndex: 0, width: w, height: h });
    $(‘div[name=”Two”] #keytopic’).jqxDropDownList({source: keytopics, selectedIndex: 0, width: w, height: h });
    $(‘div[name=”Three”] #keytopic’).jqxDropDownList({source: keytopics, selectedIndex: 0, width: w, height: h });

    What I find is that everytime I create a new div with the dropdownlist, the previous other two stop working and no longer don’t display my source list. Is this a bug?

    Cheers,

    Jay

    However,

    JQXDropDownLists with same source #98360

    Hristo
    Participant

    Hello Jay,

    I tested this example and it seems to work fine.
    I would like to suggest you look at this tutorial below it demonstrates the right approach to create the jqxDropDownList:
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdropdownlist/jquery-dropdownlist-getting-started.htm?search=drop
    If you could provide me more details what you want to achieve I could try to suggest you a solution.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.