Or

$(".C_Sortable").sortable({items:":not(.ui-state-disabled)"});

<ul class="C_Sortable">
  <li class="ui-state-default">Sortable Item 1</li>
  <li class="ui-state-default">Sortable Item 2</li>
  <li class="ui-state-default">Sortable Item 3</li>
  <li class="ui-state-default ui-state-disabled">Locked Item 1</li>
  <li class="ui-state-default ui-state-disabled">Locked Item 2</li>
</ul>

if that's the look you're going for.

- Richard

On Wed, Dec 16, 2009 at 11:14 PM, lightrain <cyqlightr...@gmail.com> wrote:

> Also you can do it by selecter.
> $(".C_Sortable").sortable({items:".ui-state-default"});
>
>
>
> <ul class="C_Sortable">
>   <li class="ui-state-default">Sortable Item 1</li>
>   <li class="ui-state-default">Sortable Item 2</li>
>   <li class="ui-state-default">Sortable Item 3</li>
>   <li class="ui-state-default_lock">Locked Item 1</li>
>   <li class="ui-state-default_lock">Locked Item 2</li>
> </ul>
>
>
> 2009/12/17 MorningZ <morni...@gmail.com>
>
> Aggghh.... sometimes i complicate the hell out of everything
>>
>> <ul class="C_Sortable">
>>   <li class="ui-state-default">Sortable Item 1</li>
>>   <li class="ui-state-default">Sortable Item 2</li>
>>   <li class="ui-state-default">Sortable Item 3</li>
>> </ul>
>> <ul class="C_Static">
>>    <li class="ui-state-default">Locked Item 1</li>
>>   <li class="ui-state-default">Locked Item 2</li>
>> </ul>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "jQuery UI" group.
>> To post to this group, send email to jquery...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/jquery-ui?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to jquery...@googlegroups.com.
> To unsubscribe from this group, send email to
> jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to