javascript - jsf commandbutton setenabled onclick -


how can disable commandbutton (ajaxbutton) when user clicks on it?

i tried with:

onclick="javascript:this.disabled='true';" 

and

onclick="document.getelementbyid('buttonid').disabled='true'" 

but nothing works?

for specific problem think need remove quotes around 'true'. @ link how can disable h:commandbutton without preventing action , actionlistener being called?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -