I have the following jsp page that loads an unordered list dinamically from the database using scriptlets for iterating.
I want to use jQuery sortable widget on the list.The problem is it will only work for the first list item, since the others are loaded dinamically.
How would I make it work for all of them? This is the sortable widget http://jqueryui.com/sortable/
This would be the code snippet for the widget.Somehow I need to call it after the whole list has completed loading.
Can it be done? Any jQuery gurus around here? Any ideea will be highly apreciated.Thanks!
Stamin Adrian wrote:The problem is it will only work for the first list item, since the others are loaded dinamically.
I know it's obsolete, but I didn't know how to do it any other way.I'm making the project for a course i'm taking.I will learn jsf after this.So the problem was that the ul was inside the for.I was unaware of that.Stupid mistake.I just saw that now.Thanks.Do you know any sources from where I can learn modern jsp or jsf for that matter?