title: Jquery button click() function is not working
body: <p>I am trying to create dynamic form where user can add dynamic text-fields based on their requirement. Here is my jquery code ..</p>
  
  <pre><code>$(document).ready(function() {
      $("#add").click(function() {
          var intId = $("#buildyourform div").length +1;
          var fieldWrapper = $("&lt;div class=\"fieldwrapper\" name=\"field" + intId + "\" id=\"field" + intId + "\"/&gt;");
          var fName = $("&lt;input type=\"text\" name=\"name\" class=\"fieldname\" id=\"tb"+ intId +"_1\"/&gt;");
          var lname = $("&lt;input type=\"text\" name=\"email\" class=\"lastname\" id=\"tb"+ intId +"_2\"/&gt;");
          var removeButton = $("&lt;input type=\"button\" class=\"remove\" value=\"-\" /&gt;");
  
          var addButton = $("&lt;input type=\"button\" class=\"add\" id=\"add\" value=\"+\" /&gt;")
          removeButton.click(function() {
              $(this).parent().remove();
          });
          fieldWrapper.append(fName);
          fieldWrapper.append(lname);
          fieldWrapper.append(removeButton);
          fieldWrapper.append(addButton);
          $(this).remove();
          $("#buildyourform").append(fieldWrapper);
  
      });
  
  });
  </code></pre>
  
  <p>and Html code is ...</p>
  
  <pre><code>&lt;fieldset id="buildyourform"&gt;
      &lt;legend&gt;Build your own form!&lt;/legend&gt;
      &lt;div class="fieldwrapper" name="field1" id="field1" /&gt;
         &lt;input type="text" name="name" class="fieldname" id="tb1_1" /&gt;
         &lt;input type="text" name="email" class="lastname" id="tb1_2" /&gt;
         &lt;input type="button" value="+" class="add" id="add" /&gt;
      &lt;/div&gt;
  &lt;/fieldset&gt; 
  &lt;input type="submit" value="send" id="asdasd" name="submit" /&gt;
  </code></pre>
  
  <p>Check my <a href="http://jsfiddle.net/4QtB4/" rel="noreferrer">JSFiddle</a> also. </p>
  
  <p>Whats wrong with me is when user click on "+" button first time then click function working and it adds two text-fields into my fieldset. But after that when i click on "+" button, its not triggering click function. May be id conflict. Please help.</p>