afaaro 0 Newbie Poster

Hello everyone

I need help with this script, works fine but how can i set a cookie on current tab if I refresh the page

        <script>
        $(document).ready(function(){           
            $('ul.tabs li').click(function(){
                var tab_id = $(this).attr('data-tab');

                $('ul.tabs li').removeClass('current');
                $('.tab-content').removeClass('current');

                $(this).addClass('current');
                $('#'+tab_id).addClass('current');
            })      
        })
        </script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.