tags:

views:

23

answers:

0

Currently I used code from http://dimox.net/demo/simplest-universal-jquery-tabs-script/

Example on Tab 3 have a contact form. After we submitted the form (refresh) I want the tab still on Tab 3. How to implement it?

(function($) {
 $(function() {

$('ul.tabs').each(function() {
    $(this).find('li').each(function(i) {
        $(this).click(function(){
            $(this).addClass('current').siblings().removeClass('current')
                .parents('div.section').find('div.box').hide().end().find('div.box:eq('+i+')').fadeIn(150);
        });
    });
});

   })
   })(jQuery)

})
})(jQuery)