EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on August 16, 2017, 01:04:37 PM



Title: [SOLVED] How to select Ribbon Tab?
Post by: Pierre on August 16, 2017, 01:04:37 PM
Hello
I need to select Ribbon tab from JavaScript and I try:

Code:
$('#main_ribbon').tabs('select', 2);

but it does not work :(
Thank you for your help.


Title: Re: How to select Ribbon Tab?
Post by: jarry on August 16, 2017, 07:38:43 PM
Your code has no problem. The ribbon extends from tabs component, you can call 'select' method to active another tab panel.


Title: Re: How to select Ribbon Tab?
Post by: Pierre on August 17, 2017, 06:38:37 AM
You have right - I have 2 DIV's with same ID so it works now, thank you for checking it.