+ 1

In jquery how can i separate comma separate value?

I have variable var =('sunday,monday,saturday'); I want store it separate like var a = Sunday. b=Monday and c = Saturday.

23rd Mar 2018, 5:45 PM
Digneshkumar Patel
Digneshkumar Patel - avatar
1 Answer
+ 3
you can split the string by comma and will have array of values.
23rd Mar 2018, 7:37 PM
Damyan Petkov
Damyan Petkov - avatar