Both, thanks for your help.I've appended some additional code to the showHide function that has done the trick.var $tabButton = $("[aria-controls='" + targetElementSelector + "']");var isVisible = shouldShowWhenChecked ? isChecked : !isChecked;$tabButton.toggleClass('hidden', !isVisible);Where targe...