Jquery click and append dissapearing

Posted by Cameron on Stack Overflow See other posts from Stack Overflow or by Cameron
Published on 2010-05-13T17:08:07Z Indexed on 2010/05/13 17:14 UTC
Read the original article Hit count: 234

Filed under:

When this fires I see the added li for a split second and then it disappears.... What gives? Using jquery 1.4.2

$(function(){
  $('a#add_phone').click(function () { 
    $('<li>Test</li>').appendTo('ol#phones');
  });
});

© Stack Overflow or respective owner

Related posts about jQuery