[jQuery] Re: attr('onclick','') problem on ie6

2008-08-24 Thread Ariel Flesler
That simply doesn't work on IE. Use bind() instead. -- Ariel Flesler http://flesler.blogspot.com/ On Aug 24, 8:41 am, Sarbesh <[EMAIL PROTECTED]> wrote: > Hi, > > i'm new to jquery and i'm having some problem. > > the code below works fine in FF3.0 but doesn't work with IE 6.0. > i used it to sh

[jQuery] Re: attr('onclick','') problem on ie6

2008-08-24 Thread ripple
Your totally removing the onclick, so when your trying to modify it, it no longer exists.   function show_hidden_row(id,a_id){     $(id).show();      $(a_id).attr("onclick","hide_shown_row('"+id+"','"+a_id+"')");   $(a_id).html(''); }   --- On Sun, 8/24/08, Sarbesh