Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have add the below code in the contenteditor webpart to enable the List tools tab in the sharepoint page.

        setTimeout(function() {
        var elem = document.getElementById("MSOZoneCell_WebPartWPQ2");
           if(elem != null) {
                var dummyevent = new Array();
                dummyevent["target"] = elem;
                dummyevent["srcElement"] = elem;
                _ribbonStartInit("Ribbon.Browse", true)
        }, 2000);

But when selecting particular items in the List of sharepoint 2010, the item tab is not automatically enabling

Please help

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.