tags:

views:

29

answers:

1

Hi,

I've been battling with this for a while:

I've got a mysql database of events happening on various weeks. For each event there is a field with the week numbers that it is occurring as a text string.

e.g. W01-W04, W06, W08, W10

How can i convert that that to an array of values with jquery?

e.g. W01, W02, W03, W04 ect..

And then how would i replace that row with a row for each week value.

Thanks in advanced.

A: 

just use the .split() method within javascript.

string.split(',');
Orbit
Well that's certainly going to be an important part of the solution, but there's going to be a bit more to it than just that.
Pointy
working on it :)
Orbit