[jQuery] Re: Enabling a button depending on checkboxes...

2008-08-25 Thread MBaas
At least I can answer my own question #1 now: disabled-attribute needs to be removed if it shouldn't be applied, setting it to blank does not help. So my code was changed to: function SetDeleteStatus() { var foo=disabled; $(#gvFolderItems input:checkbox).attr(checked,function()

[jQuery] Re: Enabling a button depending on checkboxes...

2008-08-25 Thread Karl Rudd
document.getElementById(someId) returns a plain old DOM node. $(#someId) returns a jQuery wrapped DOM node, which you can use all the jQuery functions on. So to use jQuery to remove the attribute you'd do this: $(#DeleteButton).removeAttr(disabled); Note the shortened function name: