Solved

how to move list item (li) to specifi location?

Posted on 2008-10-13
3
468 Views
Last Modified: 2008-11-29
I have a ordered list. I need to know how to move an item to specific location in list?

Like thru java script if I want to move item 1 to position 10 in list, how do i do that?

Also If there is already an item at position 10, then I want to push down all items after position 10 .

Please help
0
Comment
Question by:immtrac
3 Comments
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22706086
0
 
LVL 1

Expert Comment

by:andrewmilo
ID: 22706151
Do you mean interactively, or programatically?
0
 

Accepted Solution

by:
immtrac earned 0 total points
ID: 22706209
programatically..!

e.g.

I will ask user where he want to move item. If he says i wan to move item on position 10, I want to pass the position no. to a JS function and then move item on that position. If the spot is already occupied, push that item (and all items after ) down.

Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question