Javascript reference dynamically created elements amand script needed

This project received 17 bids from talented freelancers with an average bid price of $120 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
Total Bids
Project Description

I have a form which I use to submit info to mysql database.(posted as an array)On this form I have a dropdown list which has an onchange event attached to it. When I select an option from the list box I call an ajax script which goes off to the database, gets the info I require and returns it in a json string. This info then populates the text boxes in the form [url removed, login to view] I dynamically create another row in the form I am unable to get the row of new text boxes to populate with the info selected by the new dropbox option.I have looked at the page in firebug and I can see that the script is appending"1"to the id's of the new dynamically created [url removed, login to view] I need is to change the "onchange" event in the javascript to look/listen for the new dynamically created [url removed, login to view] solution must be cross browser [url removed, login to view] script is below....

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online