<div>Can i disable a button dynamically ?</div>
<div> </div>
<div>Where's the problem with my code?</div>
<div> </div>
<div> public String getSelectAllDisabled() {<br> if (viewItems == null || viewItems.length == 0) {<br> return "disabled";<br> } else {<br> return "false";<br> }
<br> }</div>
<div> </div>
<div><input id="selectAll" type="button" value="¤¹¤Ù¤Æßx’k" class="button large" style="" disabled=""/></div>
<div> </div>