greddin
asked on
Help splitting a string up
I have a a Javascript variable that is coming back with a special delimited string. (It's how SharePoint stores multiple values).
I'm initializing my Javascript variable like this:
My values are coming back like these.
How can I spit the strings up so they look more like this?
Thank you.
I'm initializing my Javascript variable like this:
var sponsor=$(this).attr("ows_Sponsor");
if(sponsor==null)
sponsor='';
My values are coming back like these.
;#SG3;#ACC;#
or;#SG3;#ACC;#AETC;#
How can I spit the strings up so they look more like this?
SG3,ACC
orSG3,ACC,AETC
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome.
ASKER