[Answered ]-Ignore HTML element ID in URL

1👍

What I needed in the end (and what I was initially looking for) was window.location. Selecting at the start a tab that is not the first one via EasyTabs’ API apparently triggers a bug that causes both tabs’ contents to be visible at the same time.

Using window.location.replace('#desired-tab-id') before the $('#tab-container').easytabs() function fixed the problem.

👤Aylen

1👍

The hash isn’t sent to the server.

Instead, can you use the API that the plugin exposes to set the tab? e.g.:

$('#outer-container').easytabs('select', '#nested-tab-3');

👤Nils

Leave a comment