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) {
Try setting the disabled attribute directly:
disabled
if ( someCondition == true ) { document.getElementById('btn1').setAttribute('disabled', 'disabled'); } else { document.getElementById('btn1').removeAttribute('disabled'); }