“Question and Questionnaire Design,” in P. V. Marsden and J. D. Wright (eds.) Handbook of Survey Research, 2nd Edition, Emerald (2010): chapter 9 (with J. Krosnick).
var url = document.location.toString();
if (url.match('#')) {
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
}
// Change hash for page-reload
$('.nav-tabs a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash;
});
});