Stay on a current tab after after submitting a form using jQuery

后端 未结 8 608
一生所求
一生所求 2021-01-18 08:14

I\'m trying to stay on a specif tab ( in this case tab2 ) but after clicking the submit button the tab reverts to tab 1 which has the default class of active. I have hit a b

8条回答
  •  不思量自难忘°
    2021-01-18 08:48

    
    
    The jQuery function: $(document).ready(function(){ $("#tab").tabs(); var param = $(document).getUrlParam('tab'); if (param !=null) $("#tab").tabs('select',param); else $("#tab").tabs(); });

提交回复
热议问题