title: Hide update and cancel button after click on update button
body: <p>We are using this code for updating the price.</p>
  
  <p>Once we click on "update" button it's displaying as like in image.</p>
  
  <p>What we need is once we click on "update" button, then "Update" and "cancel" button should hide. Now once we refresh the page, then only "Update" and "cancel" button is hidden, but it should happen before refeshing the page. I need something like this: <a href="https://jsfiddle.net/g1v9x1bt/" rel="nofollow">https://jsfiddle.net/g1v9x1bt/</a></p>
  
  <p>For the "cancel" button, it's working fine. Once we click on the "cancel" button, then "Update" and "cancel" button is hiding</p>
  
  <pre><code>&lt;span class="label pro_status"&gt;
      &lt;?php //echo $products-&gt;getPrice(); ?&gt;
  
          &lt;span id="valueprice_&lt;?php echo $products-&gt;getId(); ?&gt;"&gt;&lt;?php echo $products-&gt;getPrice(); ?&gt;&lt;/span&gt;
      &lt;input type = "text" id = "price_&lt;?php echo $products-&gt;getId(); ?&gt;" onkeydown="validateNumbers(event)" "name = "price" value = "&lt;?php echo $products-&gt;getPrice(); ?&gt;" style = "display:none"/&gt;
  
  
      &lt;!-- aki 2 --&gt;
      &lt;span class="label wk_action" id="edit_link_&lt;?php echo $products-&gt;getId(); ?&gt;"&gt;
  &lt;img onclick="showFieldPrice('&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;p id="updatedprice_&lt;?php echo $products-&gt;getId(); ?&gt;" style = "display:none;color:red;"&gt;Updated&lt;/p&gt;&lt;br/&gt;
      &lt;button id="price_update_button_&lt;?php echo $products-&gt;getId(); ?&gt;" class="button wk_mp_btn1" onclick="updateFieldPrice('&lt;?php echo $products-&gt;getId(); ?&gt;'); return false;" style="display:none" &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="price_reset_button_&lt;?php echo $products-&gt;getId(); ?&gt;" type="reset" class="cancel" onclick="hideResetPrice('&lt;?php echo $products-&gt;getId(); ?&gt;'); return false;" style="display:none" &gt;
  &lt;span&gt;&lt;span&gt;&lt;?php echo $helper-&gt;__('Cancel') ?&gt;&lt;/span&gt;&lt;/span&gt;
                                                          &lt;/button&gt;                                                       
                                                      &lt;/span&gt;
  </code></pre>
  
  <p><strong>script</strong></p>
  
  <pre><code>&lt;script&gt;
  function updateFieldPrice(product_id)
          {
              var priceId = '#price_'+ product_id;
              var valueId = '#valueprice_'+ product_id;
              var updatedqty = '#updatedprice_'+ product_id;
  
  
              var editLink = "#price_edit_link_"+ product_id;
              var updateButton = "#price_update_button_"+ product_id;
              var resetButton = "#price_reset_button"+ product_id;
              var url ='&lt;?php echo Mage::getUrl('marketplace/marketplaceaccount/updateFieldPrice/')?&gt;';
  
              $wk_jq(priceId).toggle()
  
              $wk_jq(editLink).hide();
              $wk_jq(updateButton).show();
              $wk_jq(resetButton).show();
  
              $price = $wk_jq(priceId).val();
              jQuery(valueId).html($price);
              hideReset(product_id);
  </code></pre>
  
  <p></p>