Select all disabled input elements

Select all disabled input elements

Hi there,

I´m trying to select all input button elements with class="button" in a page in order to change their css class.

Looking through some examples I managed to come up with the code below, which works perfectly in Firefox 3.6, but for some reason seem to not work on IE7.

  1. $('input.button[disabled=disabled]').attr('class', 'buttonDes');

Any ideas as to how i´t could be achieved?

Thanks.