I'm pretty new to javascript and i have following problem:
in an alert popup i'm getting back a variable with 2 values which are separated by ",".
alert example: 1,2
now i want to get this values separated so i get 2 different variables
value 1 = 1
value 2 = 2
when there is no value alert example: ,2 then it should look like this: value 1 = 0 value 2 = 2