<big>
<button id="btn1" type="submit" onclick="hideButton()" >Button1 </button>
<button id="btn2" type="submit" >Button2 </button>
//javascript function should be like this
function hideButton()
{
alert();
document.getElementById('btn2').style.visibility = 'hidden';
}