1

Here are the problems that I'm facing with a small jQuery script :

  1. 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?
  2. 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.

5
  • 2
    Seconded, have absolutely no idea what you are asking. Commented Jul 24, 2011 at 12:08
  • what you not understand? see this link: jsfiddle.net/pgDcq Commented Jul 24, 2011 at 12:08
  • 1.get cleaned, link add after click on remove in input hello . 2.added link remove, additional. Commented Jul 24, 2011 at 12:12
  • I don't intend to offend you, but it would really help if you worked on your english. I'm no master myself but on reading this I didn't understand a thing. Please don't take it as an insult or negative criticism. I'm sure you have great coding skills but working on your language will really make you a better developer. Commented Jul 24, 2011 at 13:24
  • Is there a need for the fourteen div elements? Have you considered using a couple of fieldsets for the columns? (I'm assuming 'columns' from the name/class of some of the divs, anyway). I can't help but feel there's a (much) simpler way to achieve what you want. Commented Jul 24, 2011 at 14:25

1 Answer 1

2
****** 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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.