I am using @ DelightedD0D solution. When the page loads, management always stops on the last tab. If you want to fix this, update the following function
$(function () { $('#myTab a:last').tab('show'); })
to
$(function () { $('#myTab a:active').tab('show'); })
source share