title: display update and cancel button after clicking edit button
body: <p>we have marketplace site, where each seller/vendor have their own account. they can see list of products. sku ,qty in their account.</p>
  
  <p>now its displaying like this : image 1 =<a href="http://prnt.sc/8wm25g" rel="nofollow">http://prnt.sc/8wm25g</a></p>
  
  <p>if i click on cancel button , than its displaying like this : <a href="http://prnt.sc/8wm2fv" rel="nofollow">http://prnt.sc/8wm2fv</a></p>
  
  <p>what i need is :</p>
  
  <p>a)if we click on edit button, than only "Update" &amp; "cancel" button should visible and "Edit" button should hide.</p>
  
  <p>b)Later if we click on "cancel" button, than "Update &amp; cancel" button should hide and "Edit" button should visible.</p>
  
  <pre><code>&lt;?php echo (int) Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($products)-&gt;getQty(); ?&gt;
        &lt;input type = "text" id = "qty_&lt;?php echo $products-&gt;getId(); ?&gt;" name = "qty" value = "&lt;?php echo (int) Mage::getModel('cataloginventory/stock_item')-&gt;loadByProduct($products)-&gt;getQty(); ?&gt;" style = "display:none"/&gt;
  
  
  
      &lt;span class="label wk_action" id="edit_link_&lt;?php echo $products-&gt;getId(); ?&gt;"&gt;
              &lt;img onclick="showField('&lt;?php echo $products-&gt;getId(); ?&gt;'); return false;" src="&lt;?php echo $this-&gt;getSkinUrl('marketplace/images/icon-edit.png'); ?&gt;"/&gt;
          &lt;/span&gt;  
  
          &lt;br/&gt;
          &lt;button id="update_button_&lt;?php echo $products-&gt;getId(); ?&gt;" class="button wk_mp_btn1" onclick="updateField('&lt;?php echo $products-&gt;getId(); ?&gt;'); return false;" &gt;
              &lt;span&gt;&lt;span style="font-size:12px;"&gt;&lt;?php echo $helper-&gt;__('Update') ?&gt;&lt;/span&gt;&lt;/span&gt;
          &lt;/button&gt;
  
          &lt;button id="reset_button_&lt;?php echo $products-&gt;getId(); ?&gt;" type="reset" class="cancel" onclick="hideReset('&lt;?php echo $products-&gt;getId(); ?&gt;'); return false;"&gt;
              &lt;span&gt;&lt;span&gt;&lt;?php echo $helper-&gt;__('Cancel') ?&gt;&lt;/span&gt;&lt;/span&gt;
          &lt;/button&gt;
  
      &lt;script type = "text/javascript" &gt;
  
              var $wk_jq = jQuery.noConflict();
  
              function hideReset(product_id) {
                  var editLink = "#edit_link_"+ product_id;
                  var updateButton = "#update_button_"+ product_id;
                  var resetButton = "#reset_button"+ product_id;
  
                  $wk_jq(editLink).show();
                  $wk_jq(updateButton).hide();
                  $wk_jq(resetButton).hide();
              }
               function showField(product_id)
              {
                  var qtyId = '#qty_'+ product_id;
  
                  var editLink = "#edit_link_"+ product_id;
                  var updateButton = "#update_button_"+ product_id;
                  var resetButton = "#reset_button"+ product_id;
  
                  $wk_jq(qtyId).toggle()
  
                  $wk_jq(editLink).hide();
                  $wk_jq(updateButton).show();
                  $wk_jq(resetButton).show();
  
                  $qty = $wk_jq(qtyId).val();
  
  
              }
              function updateField(product_id)
              {
                  var qtyId = '#qty_'+ product_id;
  
                  var editLink = "#edit_link_"+ product_id;
                  var updateButton = "#update_button_"+ product_id;
                  var resetButton = "#reset_button"+ product_id;
              var url ='&lt;?php echo Mage::getUrl('marketplace/marketplaceaccount/updateField/')?&gt;';
  
                  $wk_jq(qtyId).toggle()
  
                  $wk_jq(editLink).hide();
                  $wk_jq(updateButton).show();
                  $wk_jq(resetButton).show();
  
                  $qty = $wk_jq(qtyId).val();
  
                  new Ajax.Request(url, {
                      method: 'post',
                      parameters: {id: product_id, qty: $qty},
              onComplete: function (transport) {
  
  
                      alert(transport.responseText);
              $wk_jq(qtyId).setValue($qty);
  
                  }
                  });
              }
  </code></pre>
  
  <p></p>