title: After click append child with input field like tree
body: <p>I am trying to create organization structure with left child and right child. 
  just like this demo
  <a href="http://www.jqueryscript.net/demo/Create-An-Editable-Organization-Chart-with-jQuery-orgChart-Plugin/">http://www.jqueryscript.net/demo/Create-An-Editable-Organization-Chart-with-jQuery-orgChart-Plugin/</a></p>
  
  <p>But I want to save data from here with input field.
  I want to create left child and right child for each after click. now all displaying one after one in bottom and only remove button. I want add button also for creating child for each input form.
  Here I used like this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    var scntDiv = $('#p_scents');
    var i = $('#p_scents p').size() + 1;
  
    $('#addScnt').live('click', function() {
      $('&lt;p&gt;&lt;label for="p_scnts"&gt;&lt;input type="text" id="p_scnt" size="20" name="p_scnt_' + i + '" value="" placeholder="Input Value" /&gt;&lt;/label&gt; &lt;a href="#" id="remScnt"&gt;Remove&lt;/a&gt;&lt;/p&gt;').appendTo(scntDiv);
      i++;
      return false;
    });
  
    $('#remScnt').live('click', function() {
      if (i &gt; 2) {
        $(this).parents('p').remove();
        i--;
      }
      return false;
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    font-family: Arial;
  }
  h2 {
    padding: 0 0 5px 5px;
  }
  h2 a {
    color: #224f99;
  }
  a {
    color: #999;
    text-decoration: none;
  }
  a:hover {
    color: #802727;
  }
  p {
    padding: 0 0 5px 0;
  }
  input {
    padding: 5px;
    border: 1px solid #999;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -web-kit-border-radius: 4px;
    -khtml-border-radius: 4px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;h2&gt;&lt;a href="#" id="addScnt"&gt;Add Another Input Box&lt;/a&gt;&lt;/h2&gt;
  
  &lt;div id="p_scents"&gt;
    &lt;p&gt;
      &lt;label for="p_scnts"&gt;
        &lt;input type="text" id="p_scnt" size="20" name="p_scnt" value="" placeholder="Input Value" /&gt;
      &lt;/label&gt;
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is <a href="http://jsfiddle.net/lemonkazi/re8e2yov/">jsfiddle DEMO</a> 
   I want to create tree structure same  as that plugin with input form. but failed to do that. my snippet is not working in question so I placed jsfiddle link.</p>