Retain active tab on page reload

Retain active tab on page reload

Hi- I have created tabs using JQuery. On my page reload, always the first tab is active. On my page reload, I want to retain the tab in which the user was before reloading the page. How to do it?