function run after bootstrap tab switch

by ian_smithz

HTML

activate function after switching BS tab

JavaScript

$('a[data-toggle="tab"]').on('shown.bs.tab', 
     
	    function _setButtons()
	    {
	
	        if (_checkedcount() === 0)
	        {
	            $("#submit_buy_domains_top").hide();
	            $("#submit_buy_domains_bottom").hide();
	        }
	        else
	        {
	            $("#submit_buy_domains_top").show();
	            $("#submit_buy_domains_bottom").show();
	
	        }
	    }
  
	);