Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- add elements dynamically to an unordered list


dupalo - 10:22 pm on Mar 28, 2012 (gmt 0)


yes, thanks daveVk that works a treat. I didn't know that $("li#cities_list").html("city_arr[index]").show('fast'); the html method within the loop doesn't assign 4 bullet point to the list but at every run it clears the previous item and adds another one, therefore leaving me with only 1 bullet point. It took me a while to understand that, I simply thought that there was an error in my code.
cheers


Thread source:: http://www.webmasterworld.com/javascript/4434095.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com