Hi Richard, Thanks for replying. I am trying to save /update sequence of elements whenever it is changed. In following example, if you move 3rd element at 2nd position then I wanted those two elements only in JS instead of complete list. But it looks when we change sequence and try to save the ordering then we need to fire updates for all the elements for that position is changed..I am trying to figure out for better approach here...
Thanks, Bhavin On Dec 6, 6:28 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > I'm not sure your sample provides quite enough detail of what you're going > for. If you have the following > > <ul> > <li id="1" class="exampleclass"></li> > <li id="2" class="exampleclass"></li> > <li id="3" class="exampleclass"></li> > <li id="4" class="exampleclass"></li> > <li id="5" class="exampleclass"></li> > <li id="6" class="exampleclass"></li> > </ul> > > and you drag 5 to be in-between 1 and 2, like so, > > <ul> > <li id="1" class="exampleclass"></li> > <li id="5" class="exampleclass"></li> > <li id="2" class="exampleclass"></li> > <li id="3" class="exampleclass"></li> > <li id="4" class="exampleclass"></li> > <li id="6" class="exampleclass"></li> > </ul> > > then what do you want? > > - Richard > > > > On Fri, Dec 5, 2008 at 7:15 PM, Bhavin <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am trying to find out element which are dragged & dropped on the > > list in following method: > > > $("#example").sortable({ > > //if i move "1" at second position then here i want array of > > ids 2,1 sequence. ?? > > // I tried selector but it gives me all the elements. ie. > > 2,1,3. > > }); > > > <ul> > > <li id="1" class="exampleclass"></li> > > <li id="2" class="exampleclass"></li> > > <li id="3" class="exampleclass"></li> > > </ul> > > > Can anyone help me on this?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---