0

It is working perfect in chrome and ie,but when I tested it in firefox,it will not restrict double click on button.Button does not become disable immediately after first click. My javascript Method :

function GRVMasterAddButton_Click(btn)
{
    if (Page_ClientValidate("masterGrp")) {
        document.getElementById(btn.id).disabled = true;
        __doPostBack(btn.id, '');
    }
}

Button declaration :

<asp:Button ID="frmSubmitInsert" runat="server" OnClick="frmSubmit_Click" OnClientClick="GRVMasterAddButton_Click(this)" Text="Add"
    Width="100px" Visible="false" ValidationGroup="masterGrp" />
Muhammed Shevil KP
  • 1,404
  • 1
  • 16
  • 21
Amit Bhatt
  • 45
  • 10

1 Answers1

0

disabled attribute does not work in firefox - for a div

Look at this page... May you shuld change your Javascript code... About broswer problem :D

Community
  • 1
  • 1
Eyup Can ARSLAN
  • 692
  • 9
  • 25