you are missing quotes. may be a typo. js.executeScript("arguments[0].setAttribute('disable','');",w);