Javascript doesn’t work after website transfer

I have some issue with javascript after website transfer. All others scripts works fine but not this one

if(window.location.hash) {
        $('li').one('click' , function() {

            first = $(this).siblings().eq(0).detach();
            $(this).parent().prepend($(this).after(first).detach());
        });

        if (window.location.hash != "") {
            $('li').eq(Number(window.location.hash.slice(1)) + 2 ).click();
        }

On demo version it works fine, but on live it do nothing and its giving 0 errors.

Read more here: Javascript doesn’t work after website transfer

Leave a Reply

Your email address will not be published. Required fields are marked *