jQuery UI Widgets Forums Getting Started Dynamic DIV IDs in dynamic Tabs

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dynamic DIV IDs in dynamic Tabs #57639

    suhasg
    Participant

    I am displaying a jqxGrid on first tab and users can select one of the rows which opens a second tab. Users can also go back to the first tab and select the same row again which should open a third tab with the same information as in second tab. Since jqxGrid requires a DIV in the tab with an ID, it poses a problem because the second and third tabs will now have same DIV IDs and ID will not be unique across the page. Any idea how to create new jqxGrid instances without any reference to a DIV ? Or is there any way to create DIVs with randomly assigned IDs ? Thanks.

    Dynamic DIV IDs in dynamic Tabs #57645

    Peter Stoev
    Keymaster

    Hi suhasg,

    To dynamically create and append DIV to the DOM, you can use the jQuery’s append function. For more information: http://api.jquery.com/append/

    Best Regards,
    Peter Stoev

    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.