Taking a comma separated list and creating a unordered list
- by mmsa
I've got a simple list which is generated by a checkbox list. The generated code is simply this
white,blue,red,black
I need to use jquery to wrap each of these elements in a < li tag. How do you go through the list and use the comma as a separator? I also will need to delete the comma. Sometime there will be 1 item, sometimes 3, etc.
Thanks in advance!