document.getElementById('btnid').disabled is not working in firefox and chrome

后端 未结 7 1139
醉梦人生
醉梦人生 2020-12-08 21:16

I\'m using JavaScript for disabling a button. Works fine in IE but not in FireFox and chrome, here is the script what I\'m working on:

function disbtn(e) { 
         


        
相关标签:
7条回答
  • 2020-12-08 22:04

    Another alternative :

    document.formname.elementname.disabled=true
    

    Work on FF and IE ! :)

    0 讨论(0)
提交回复
热议问题