This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I was looking at the JQuery for absolute beginner instructional video where I was shown how to add and remove an item for an ordered list. The demo assumed that you had one unordered list on a page. I tried to create a demo where there are two unordered list on a page, but I only want to manipulate one with an ID of loc. I was unsuccessful. Please point me in the correct direction. My code follows…
Thanks Eric I think I have it working.
In the change code line 13 was:
and is now
line 18 was
and is now
This seems to work but I have a related questions doing with the counter and a page refresh. If I execute the HTML and then stop and refresh the page the counter does not go back to the number of list item that is present on the page, but holds the value of the page before it was refreshed. Is there a way to reinitialize the counter?
I tried this for lines at the beginning of the function, but it was of no value.
Joined: Nov 08, 2001
Um, I think that counter issue is sort of impossible....
$("li").size would still be counting the elements from both lists.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com