Attr() function not working in IE7, alternatives?

Attr() function not working in IE7, alternatives?

Hello

Is there any alternative way to disable elements in real time as .attr("disabled",true) or .attr("disabled","disabled") do not work in IE7, only with IE8 or FireFox 3?

Thank you.