Hi i have a variable called sInventoryIDs which can contain many IDs, each being seperated by a "~" like so:
234~34555~345~2~3245~999....
I'm trying to get the number of Ids in the string, i chose to do this by creating an array holder and using split, its not working though, any thoughts as to why:
var arrIDs = new Array()
arrIDs = sInventoryIDs.split('~');
alert(arrIDs.length);
Is there a regExp way to handle this? Thanks
234~34555~345~2~3245~999....
I'm trying to get the number of Ids in the string, i chose to do this by creating an array holder and using split, its not working though, any thoughts as to why:
var arrIDs = new Array()
arrIDs = sInventoryIDs.split('~');
alert(arrIDs.length);
Is there a regExp way to handle this? Thanks