Sunday, September 15, 2013

Prevent Tab Selection on Condition in jQuery


if you want to stop user selecting a tab from the active tab based on a particular  condition or validations you can use the following code to do so.

If you are new to jQuery, you can find more details on jQuery tab in the here. jQueryTab

I have created the simple tab sample in jsfildler.

To handle the tab selection based on conditions is very simple.What you have to do is to call the “beforeActivate” event & return true or false based on the condition. you can find the sample code here.

Happy Coding !!!  Thumbs up