How to show alerts on disabled tabs onclick?

How to show alerts on disabled tabs onclick?

How to find out whether a tab is enabled or disabeld on tabclick?

I have some tab enables and some disables. Want to show alert message on disabled tabs.