we are using follwing code display like this "image 1" : http://prntscr.com/8w7f5v :
<td>
<?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($products)->getQty(); ?>
<input type = "text" id = "qty_<?php echo $products->getId(); ?>" name = "qty" value = "<?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($products)->getQty(); ?>" style = "display:none"/>
<span class = "label wk_action">
<img onclick = "updateField('<?php echo $products->getId(); ?>'); "
src = "<?php echo $this->getSkinUrl('marketplace/images/icon-edit.png'); ?>"/>
</span>
<br/>
<button class="button wk_mp_btn1" title="<?php echo $helper->__('Save') ?>" type="submit" id="save_butn">
<span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
</button>
<button type="reset" class="button wk_mp_btn1" onclick="updateField('<?php echo $products->getId(); ?>');return false;">
<span><span><?php echo $helper->__('Cancel') ?></span></span>
</button>
</td>
if we click on edit button , its displaying like this "image 2" : http://prntscr.com/8w7fdp
what i need is
a)if we click on edit button, than only "Update" & "cancel" button should visible and "Edit" button should hide.
b)Later if we click on "cancel" button, than "Update & cancel" button should hide and "Edit" button should visible.