title: How do I fix my jQuery onclick won't remove a link & each function failed to load current number
body: <p>Here an example <a href="http://jsfiddle.net/LW5pw/" rel="nofollow">http://jsfiddle.net/LW5pw/</a></p>
  
  <pre><code>&lt;a href="#" onclick="removeShipping('#shipping-block-id'); return false;"&gt;Remove&lt;/a&gt;
  </code></pre>
  
  <p>Remove link is not working to remove the current <code>shipping-block-id</code> div.</p>
  
  <p>Also on <code>each(function(i)</code> won't generate the current++ block number for <code>name='shipping-price2'</code>, <code>name='shipping-price3'</code></p>
  
  <pre><code>$newshipping.children("div").children("input").each(function(i) {
     var $currentElem = $(this);
     $currentElem.attr("name", $currentElem.attr("name") + current);
     $currentElem.attr("id", $currentElem.attr("id") + current);
  });
  </code></pre>
  
  <p>Let me know how do I fix this..</p>