jQuery UI Widgets Forums Lists DropDownList Revert a jqxDropDownList back to a SELECT

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

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

  • carpii
    Participant

    I have several native HTML Selects in my project, which I then convert to jqxDropDownList’s using

    $(“#listid”).jqxDropDownList(options);

    Is there a way to undo this at runtime, and convert it back to a native select?

    I see I can call $(“#jqxList”).destroy() but this just removes it from the DOM, and the original select remains as display:none and with a modified #id

    I have a single page app, which is why I need to create and revert these at runtime, rather than just creating them once


    Hristo
    Participant

    Hello carpii,

    You could create it dynamically and also, I would suggest you use the wrapper as a parent for this element and after destroy it you could add again default HTML element.
    Also, I would like to suggest you look at our “Single Page App” section in our Documentation.

    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.