Here is the string:
var strMainString = new String();
strMainString = “AspDotNetHelp.com|SharePointDotNet.com|EnjoySharePoint.com|Fewlines4Biju.com”;
Now we can split the string with separator “|” and we will store in an array.
var arr = new Array();
arr = myString.split(“|”);
Now we can retrieve the items from the array by using a for loop statement like below:
for(var i=0; i < arr.length; i++)
alert ( arr[i] );
You May Also like the Following SharePoint Online Tutorials:
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.