EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 26, 2024, 02:48:28 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
Trouble Selecting Tab
Pages: [
1
]
« previous
next »
Print
Author
Topic: Trouble Selecting Tab (Read 8133 times)
enber79
Newbie
Posts: 9
enber79
Trouble Selecting Tab
«
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
Re: Trouble Selecting Tab
«
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
Re: Trouble Selecting Tab
«
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
Re: Trouble Selecting Tab
«
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
Re: Trouble Selecting Tab
«
Reply #4 on:
May 03, 2016, 01:04:35 AM »
Is the tab enabled?
Logged
enber79
Newbie
Posts: 9
enber79
Re: Trouble Selecting Tab
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...