Split a variable
December 8, 2009 12:00 AM
Hi, Is there a way to use Javascript to split a variable which looks like this: "item01\ritem02\ritem03\ritem04\r" etc...
To make things clearer, the variable is created by adding "items" and line breaks "\r"... when I display this variable (SCORM) I get a nice list:
item01
item02
item03
etc
The \r renders as a line break. However, now I need the variable split into new variables. So, after each "\r" I need the var split and create a new variable like "var_list_item_01", "var_list_item_02", etc... I REALLY hope someone can help me with this...
TIA!
Discussions have been disabled for this post