Please see demo here: http://jsfiddle.net/9pR87/28/
- Add Input – adds new row with new input
- Get Value – is getting value of last added input
I am creating some extra rows (invoice element), but when I want to use get the value in dynamically created input, but the input value is always undefined. Why?
Why jQuery can not find value of dynamically created input?
I think this is enough for what you want:
Demo
According to comment with jsfiddle
The problem is:
Here is update and working code