EasyUI Forum
April 26, 2024, 02:48: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: Trouble Selecting Tab  (Read 8133 times)
enber79
Newbie
*
Posts: 9


enber79


View Profile Email
« on: May 02, 2016, 10:28:13 AM »

Hi all. I have two functions, both triggered on click a link. Both must select a tab, usually I select tab by index. In first function this works perfectly. But the second is not working, with same syntax:

$('#docs_tab').tabs('select', 0);


¿Anyone knows why this method can fail selecting a tab? ¿Any alternative way to acomplish same funcionality?

Thanks
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 on: May 02, 2016, 12:59:19 PM »

Such code should work. You can check with F12 for errors.
Logged
enber79
Newbie
*
Posts: 9


enber79


View Profile Email
« Reply #2 on: May 02, 2016, 11:42:32 PM »

Console does not show any error. The call to select tab method is inside a IF. That condition is true, I have set a console.log string to show this. But swap to tab index 1 is not working. Don't know where is the problem.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #3 on: May 03, 2016, 12:52:39 AM »

Can you post your IF code? There must be some error.
Logged
Max Lamda
Newbie
*
Posts: 48


View Profile
« Reply #4 on: May 03, 2016, 01:04:35 AM »

Is the tab enabled?
Logged
enber79
Newbie
*
Posts: 9


enber79


View Profile Email
« Reply #5 on: May 04, 2016, 10:26:54 AM »

I have rewrite the function and is working now as expected. Thanks.
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!