Posts

Showing posts with the label SharePoint Version

How to check which SharePoint version is running?

Hi, If you have upgraded SharePoint 2010 into SharePoint 2013, Some of SP.js code won't work for SharePoint 2013. But you want to check & run code as per version then you have to use this code : if (SP.OfficeVersion.majorVersion == "14" ) {      // SP2010 code here...    } else {      // SP2013 code here...    }