I would like to change some styling (for example body background color) when specific tab is selected (clicked) in jquery ui tabs.
Sth like:
if (tab nr 2 is selected) { $(body).css('background', 'red') }
if (tab nr 3 is selected) { $(body).css('background', 'blue') }
How can I check which tab is selected?