Search code examples
jqueryjquery-uijquery-tabs

How to set the content of a tab in JQuery UI


Using JQuery UI, I would like to set the html content of the currently selected tab, without knowing any id/title in advance. What is the best method for doing so? Thanks!


Solution

  • Just use a css selector:

    $('.ui-tabs-panel').not('.ui-tabs-hide').html('Content.');