JQuery Array Question

Heya.

I was wondering if I had something like this:

<div class="test" rel="item|other|another"></div>
var items = $(".test").attr('rel');

Is there a way to explode these items into their own variable values?
so like…

item[0] = item
item[1] = other
item[2] = another

The split method is probably what you’ll want to use.

Thanks!!