I am making a file uploader. I am trying to make it so that when one input field is filled it creates a new input field. My issue is in binding the event handler to dynamically created elements. My code can be found at the following URL: http://jsfiddle.net/sJ5Az/
If you look in the scripts section at the line indicated, the issue is that the event handler is not actually set here. It does not produce any visible errors or console errors.
ok just try this . i have updated your js fiddle http://jsfiddle.net/sJ5Az/5/
You have to use the jquery live event that Attach an event handler for all elements which match the current selector, now and in the future.
Ref site:
Jquery live event
Live is depreciated so now on
function will work as live
here is the link for ref
this question is updated accordingly to on function here is the demo http://jsfiddle.net/sJ5Az/6/