Yahoo! recommends YUI 3. Learn about YUI 3 on YUILibrary.com.
This demonstrates how to dynamically remove tabs from a TabView widget.
Tab One Content
Tab Two Content
Tab Three Content
Dynamically removing tabs from a YUI TabView widget is done with the removeTab method.
We will create a <div> called demo and include the TabView markup:
Next, create an instance of TabView from our demo element:
Next we will write a function that removes the active tab:
Note: Logging and debugging is currently turned off for this example.
All YUI 2.x users should review the YUI 2.8.2 security bulletin, which discusses a vulnerability present in YUI 2.4.0-2.8.1.

Copyright © 2013 Yahoo! Inc. All rights reserved.