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.

http://jsfiddle.net/sammani/mgumC/

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.

http://jsfiddle.net/sammani/mgumC/4/

Happy Coding !!!  Thumbs up

Comments

Popular posts from this blog

Responsive Web Design

Contract First Development in WCF 4.5

Affine Cipher in C#