Board Thread:Support Requests - Getting Technical/@comment-1949364-20131227063716/@comment-4519283-20131227153453

I've got a JS function but have to hook it up with the # things (don't know what the technical name for those are.) function switchtotab(n) {	if(!document.getElementsByClassName('tabbernav')[0].childNodes[n].classList.contains('tabberactive')) {		document.getElementsByClassName('tabbernav')[0].childNodes[n].classList.add('tabberactive'); }	for(var i=0;i<document.getElementsByClassName('tabbernav')[0].childNodes.length;) {		if(i===n) {			break; }		if(document.getElementsByClassName('tabbernav')[0].childNodes[i].classList.contains('tabberactive')) {			document.getElementsByClassName('tabbernav')[0].childNodes[i].classList.remove('tabberactive'); }		i++; }	if(document.getElementsByClassName('tabberlive')[0].childNodes[n+1].classList.contains('tabbertabhide')) {		document.getElementsByClassName('tabberlive')[0].childNodes[n+1].classList.remove('tabbertabhide'); }	for(var i=1;i<document.getElementsByClassName('tabberlive')[0].childNodes.length;i++) {		if(i===n+1) {			break; }		if(!document.getElementsByClassName('tabberlive')[0].childNodes[i].classList.contains('tabbertabhide')) {			document.getElementsByClassName('tabberlive')[0].childNodes[i].classList.add('tabbertabhide'); }	} } Note that it only changes the first tabber, if you have multiple tabbers in the page it will only change the first one.