Need some jQuery advice…
I have in DOM divs with delimited entries like this:
<div class="my-data">collie; german shepherd;</div>
<div class="my-data">collie; cocker spaniel; pug; poodle;</div>
<div class="my-data">poodle; german shepherd;</div>
I need to convert this to an alphabetized list with duplicates removed:
<ul id="new-list">
<li>cocker spaniel</li>
<li>collie</li>
<li>german shepherd</li>
<li>poodle</li>
<li>pug</li>
</ul>
Trying to determine the fastest jQuery method to achieve this; I’ll have about 500 divs on a page to convert when a page loads.
DEMO : http://jsfiddle.net/BWBsj/