Add different Ajax calls for different tabs
I have 3 tabs ....e.g. Tab1,Tab2 ,Tab3. I want to fire different ajax call on selection of tabs e.g. if Tab1 selected Ajax call will go to /tab1.do, for tab2 it will be /tab2.do and so on.
I Think it can be done based on the selected tabindex and if-else blocks. But is there any other way to do that.