[EMAIL PROTECTED] wrote:
> Hi,
> I have the requirement to dynamically add and remove a row. Below is
> the code to dynamicaaly remove a row and it works fine in Mozilla but
> not in IE. Can anyone please advise me on this. Thanks.
>
> $('a.remove').click(function(){
>           $(this).parents("tr").remove();
> });
>
> - M
>   
Just tested this and it works in IE6 & 7. I'm using jQuery 1.2.6. Maybe 
try this:

$('a.remove').click(function(e){
  $(this).parents("tr").remove();
  e.preventDefault();
});

e.preventDefault() stops the click from reloading the page.

Reply via email to