Grey out button when submit

Thread is closed for posting
2 posts, 0 answers
  1. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 09 Oct 2010 Link to this post


    How do i grey out a button when click upload? thanks
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 12 Oct 2010 Link to this post

    You can do something like this:

    <asp:Button ID="Button1" runat="server" OnClientClick="disableButton();return true;">


    function disableButton()
       $document.getElementById("<%=Button1.ClientID%>").disabled = true;

    So pretty much all it does, is that when the button is clicked, it disables itself.

    I hope that helps.
Back to Top