okay, this might not be the best way, but for each widget on the tabs, pass the variable in the functions, which will then be used in the if statement to check the selected tab, since you're only using two, can it be a Boolean? if more is needed, a more complicated step is required, but this is an easy way to do it, but not really: p xx
source share