• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onclick="this.disabled=true;"

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
onclick="this.disabled=true;" is working for me in IE but not in Firefox. Below is the code.



Ultimately I am trying to grey out the "Submit" button by using the following code.

onclick="setTimeout('document.getElementById(\'' + this.id + '\').disabled=true;', 50);" styleClass="button">


but onclick="this.disabled=true;" is not working for me at the first place in Firefox.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic