I Splitted the Url string into n number , now i want it to be displayed in single alert or some better modular way without the comma separation
My String can carry n number of error so there can be split array of n number
It should show Like with OL list,WITHOUT ANY COMMA SEPARATOR
- ID cannot be Null
- Please check character (Break the line)
- And So on
My code is below
var qtr="http://google.sd.asp?err=ID%20cannot%20be%20NULL/Zero.%0A%0D%20Id%20is%20not%20numeric%20-%202B.%20%0A%0D%20Company%20name%20for%20the%20id%20-%203%20is%20more%20than%20255%20characters.%20";
var uesp= unescape(qtr);
var splitqtr = uesp.split('?err=')[1].split('.');
alert(splitqtr);
for(i=0;i<splitqtr .length;i++)
{
alert(splitqtr[i]);
}
You can add the number to each string, then join them with line breaks: