Search the Community
Showing results for tags 'append option problem'.
Found 1 result
I have created a loop that creates a dropdown menu, a menu of timestamps, for reasons of clarity though I have created this fiddle http://jsfiddle.net/fiddlehunt/5WVKz/ where the menu is comprised of numbers 1-10, And here is the problem: As you will see in the fiddle the append() method is used. The problem is that whenever the function that creates the loop gets called...the created numbers are added to the numbers that where created with the previous function call. So. when the menu is opened(and if for example the function has been called twice) I see two times 1-10. Unfortunately I cannot replicate the behavior with jsfiddle. How can I fix it?