add input and my problem in jQuery
-
25-10-2019 - |
Question
Here are the problems that I'm facing with a small jQuery script :
- In the input with value hello after I click on add button followed by clicking on remove, The link to add vanishes. What triggers this in jQuery?
- Upon clicking on add below the second input, a new link for remove is added for each input field that is added, I would want only one remove link that would remove the most recently added input field.
Check out My jsFiddle to see the problems in action.
Solution
****** MIND READING MODE ON ******
I think this is what you need:
http://jsfiddle.net/nicolapeluchetti/pgDcq/4/
Tell me if it's ok
UPDATE
****** MIND READING MODE OFF******
Mission accomplished
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow