Farree123 0 Newbie Poster

I am trying to Add rows to my table through DOM. I have two drop downs and one text field in one row. One drop down is populated from database and when the second drop down is populated through Ajax. As far as one row is concerned it is doing good but when I add another row through DOM the values of second drop down of that row doesn't change, instead it change the values of second drop down of the first row. I am new to DOM and Ajax and totally lost what should I do to solve the problem.

Any help will be highly appreciated.