Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dynamically generated input is getting overriding by previous input Reply To: Dynamically generated input is getting overriding by previous input

#148239
TheDoc
Member

Using a for loop seems to solve the issue, though I’m not entirely sure why.

http://codepen.io/ggilmore/pen/f3a88dd68a7b1d101712b75318925198

Notice that I’m also applying unique classnames to each of the list items as well.