.attr("onclick", "javascript:addItem(this);") problem in IE7

.attr("onclick", "javascript:addItem(this);") problem in IE7

Hello Folks,

Adding javascript attribute to an element using .attr("onclick","javascript:addItem("hello",this);")  does not work in IE7.

Hence I switched to .bind, like this .bind('click', addItem) , but how should i pass those two arguments ("hello" & "this" ) to addItem function.

Kindly help me.

Thanks in advance.