Solved

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

Posted on 2008-10-13
3
467 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
Button and js nou working 3 19
Not allowed to load local recource. 4 34
100% tall div not scrollable on iPhone 3 20
message Alert on an empty search 10 17
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…

792 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