Sunday, August 1, 2010

Hide a Button using JavaScript

Suppose there is a ASP.NET button with ID=btnSubmit..You want to make it invisible on the okclick event of an anchor tag :


write the below function in javascript :

function F1()
    {
    alert('ravi')
    document.getElementById("btnSubmit").style.visibility="hidden"
    }