title: How to add the value of a data itemid to another element
body: <p>The situation is as follows. In the picture are two green buttons "Naar dit adres verzenden", which means "send to this address". Normally when someone clicks on these buttons, the user goes to a particular URL. But when someone clicks on the button the value must be passed to the class "customNextStep". This class belongs to the bottom button "Volgende", which means "next".</p>
  
  <p><strong>Click on the link: <a href="http://postimg.org/image/dlgz5ijuj/" rel="nofollow">http://postimg.org/image/dlgz5ijuj/</a> to see the printscreen.</strong></p>
  
  <p>I already have been able to retrieve the value of the data item-id of the "send to this address" button. But I do not know how I can pass on this into "customNextStep" class. I do know I should use the following:</p>
  
  <pre><code>$('.customNextStep').attr('href'); 
  </code></pre>
  
  <p>but do not know exactly how.</p>
  
  <p>The code I have so far is the following:</p>
  
  <pre><code>//get item id on address click
      if ($('.customNextStep').length) {
  
          $('.button-1').on("click", function (event) {
              //alert("event prevented");
              event.preventDefault();
              alert($(this).attr('data-itemid'));
          });
  
        .... ?????
      }
  </code></pre>
  
  <p>html "send to this address" button:</p>
  
  <pre><code>&lt;input type="button" value="@T("Checkout.ShipToThisAddress")" data-itemid="@item.Id" class="button-1 select-shipping-address-button"  onclick="" /&gt;
  </code></pre>
  
  <p>html "next" button:</p>
  
  <pre><code>&lt;a class="customNextStep" href=""&gt; 
      &lt;input type="button" name="nextstep" value="volgende" class="button-1 billing-adress-next-step-button" /&gt; 
  &lt;/a&gt;
  </code></pre>