title: Change name input by jQuery
body: <p>I want get of name old input <code>(Input 1)</code> and add it with a change to new name input <code>(Input 2)</code>.</p>
  
  <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/F8SLR/" rel="nofollow">http://jsfiddle.net/F8SLR/</a></p>
  
  <p>EX : i have this name: <code>typeservice[]</code> and i get it and change to: <code>typeservice_un[]</code></p>
  
  <p>I try as:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;input type="text" name="typeservice[]" value="Input 1" id="000"&gt;
  &lt;input type="submit" value="CLICK ME" class="Chng"&gt;
      &lt;br&gt;
  &lt;input type="text" name="" value="Input 2" id="111"&gt;
  </code></pre>
  
  <p>js:</p>
  
  <pre><code>$(document).on('click','.Chng', function(e){
      e.preventDefault();
      var name = $('#000').attr('name');
      alert(name+'_un[]')
      //$('#111').attr('name',name+'_un[]');
  })
  </code></pre>
  
  <p>What do i do?</p>