why does jQuery's fadeOut() work different in IE?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luke noob
    New Member
    • Aug 2009
    • 69

    why does jQuery's fadeOut() work different in IE?

    [CODE=javascript]

    //deleteComment
    $('a.c_delete') .livequery("cli ck", function(e){

    if(confirm('Are you sure you want to delete this comment?')==fal se)

    return false;

    e.preventDefaul t();
    var parent = $(this).parent( );
    var c_id = $(this).attr('i d').replace('CI D-','');

    $.ajax({

    type: 'get',

    url: 'delete_comment .php?c_id='+ c_id,

    data: '',

    beforeSend: function(){

    },

    success: function(){
    parent.fadeOut( 200,function(){
    parent.remove() ;

    });
    [/CODE]

    this code works fine with firefox it just fades out and removes the comment with that id , but with Internet Explorer it fades out and removes that comment out plus all other comments below that comment to the bottom of the page, why does this happen? any help would be great thanx .
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Post the corresponding HTML code.

    Comment

    • luke noob
      New Member
      • Aug 2009
      • 69

      #3
      i missed a label tag and now works fine, i never thought that would of been the problem, thanks

      Comment

      Working...