[jQuery] Sortables question
> -------Original Message-------
> From: Blair Mitchelmore <jquery@offput.ca>
> Subject: Re: [jQuery] Sortables question
> Sent: Feb 20 '07 18:29
>
> $('ol.steps li').each(function(index) {
> $(this).append('<span class="aside">List item ' + (index + 1) +
> '</span>');
> });
>
> Would convert:
>
> <ol class="steps">
> <li>Cut a hole in a box</li>
> <li>Put your junk in that box</li>
> <li>Make her open the box</li>
> </ol>
>
> into:
>
> <ol class="steps">
> <li>Cut a hole in a box<span class="aside">List item 1</span></li>
> <li>Put your junk in that box<span class="aside">List item 2</span></li>
> <li>Make her open the box<span class="aside">List item 3</span></li>
> </ol>
>
> ...I think...
>
> If each li element has an id attribute you can access them by using
> this.id inside the each iterator function.
>
> -blair
>
> dalvarado@remanresource.com