how to select a particular tab from other page using anchor tag in JQuery..?

后端 未结 3 1184
刺人心
刺人心 2021-01-19 07:30

I wonder if we can able to select a particular tab in a JQuery tab system from another page..?

For example I have a 4 menus that is Home | About | Services | Contac

3条回答
  •  情书的邮戳
    2021-01-19 08:07

    Before or after your click() definition, add this:

    strHash = document.location.hash;
    
    if (strHash != "")
        $("a[href='"+strHash+"']").parent().click();
    

提交回复
热议问题