I want to click a tab on the following page using jQuery (or at least trigger the same functions as clicking does). Here is what I tried:
jQuery('ul.gk_tab_ul-style1 li.first').next().click();
I need to click the middle tab (“Final Version”). I don’t have a good way to identify the tab, other than it will always be the second tab.
How can I click the tab using jquery?
.eq(n) starts from 0 and you can choose the 2nd tab in the list by
and click it by using trigger
hope this will help you. More on .eq() here.