Solved

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

Posted on 2008-10-13
3
466 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to generate a JSON response in coldfusion 4 41
how can i extend ? 2 43
CSS: Making Pure CSS read more boxes thinner 5 31
If condition on Html with Asp 11 15
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

770 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