EasyUI Forum
April 28, 2024, 02:11:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] How to select Ribbon Tab?  (Read 4704 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« 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 Sad
Thank you for your help.
« Last Edit: August 17, 2017, 06:39:06 AM by Pierre » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!