Solved

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

Posted on 2008-10-13
3
464 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
Comment Utility
0
 
LVL 1

Expert Comment

by:andrewmilo
Comment Utility
Do you mean interactively, or programatically?
0
 

Accepted Solution

by:
immtrac earned 0 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now