add remove input not work in edit mode
<p>I work with this code for add/remove input:</p>

<pre><code>$(document).ready(function() {

  var MaxInputs = 2; //maximum extra input boxes allowed
  var InputsWrapper = $("#InputsWrapper"); //Input boxes wrapper ID
  var AddButton = $("#AddMoreFileBox"); //Add button ID

  var x = InputsWrapper.length; //initlal text box count
  var FieldCount = 1; //to keep track of text box added

  //on add input button click
  $(AddButton).click(function(e) {
    //max input box allowed
    if (x &lt;= MaxInputs) {
      FieldCount++; //text box added ncrement
      //add input box
      $(InputsWrapper).append('&lt;div&gt;&lt;input type="text" name="mytext[]" id="field_' + FieldCount + '"/&gt; &lt;a href="#" class="removeclass"&gt;Remove&lt;/a&gt;&lt;/div&gt;');
      x++; //text box increment

      $("#AddMoreFileId").show();

      $('AddMoreFileBox').html("Add field");

      // Delete the "add"-link if there is 3 fields.
      if (x == 3) {
        $("#AddMoreFileId").hide();
        $("#lineBreak").html("&lt;br&gt;");
      }
    }
    return false;
  });

  $("body").on("click", ".removeclass", function(e) { //user click on remove text
    if (x &gt; 1) {
      $(this).parent('div').remove(); //remove text box
      x--; //decrement textbox

      $("#AddMoreFileId").show();

      $("#lineBreak").html("");

      // Adds the "add" link again when a field is removed.
      $('AddMoreFileBox').html("Add field");
    }
    return false;
  })

});
</code></pre>

<p>My Code worked in action For add input page (<a href="http://jsfiddle.net/7Weyb/1/" rel="nofollow">DEMO</a>)</p>

<p>Now in Edit page I need to work with save(default) input, But my code not work and i cant remove save(default) input and i cant see remove link (<a href="http://jsfiddle.net/7Weyb/122/" rel="nofollow">DEMO</a>)</p>

<p>How do fix this?!</p>