Hi dudes,

I have a sortable list, but i only want one element in the list be
moveable by the user. I thought of something like

$('.menu_list').sortable({
                axis: 'y',
                cancel: 'not(#mymoveableitem)';
});

but this doesn't work, nothing is moveable then.
I also tried

$('.menu_list').sortable({
                axis: 'y',
                start: function(e, ui) {
                    if (e.target.innerHTML != 'new entry') {
                         ui.cancel();
                    }
});

which doesn't work either and has strange side effects.

Any suggestions?

(another google-groups related question: i posted more or less the
same yesterday but it didn't appear in the list...i thought that posts
from new members get approved by admins or something like that..? As a
whole day passed, i repost...if i get something wrong: sorry)

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

Reply via email to