i want to add li elements it´s work fine, but the remove dosen´t work for the new elements. I had three li Elements at the start, for that the remove function work´s.
With my "add" Function i create the Li Elements with the same class, why it doesent work for the new one ?
$(document).ready(function(){
    $("#add_li").click(function (){
        $("ol").append("<li>" + $("input").val() + "<a href=\"#\" class=\"remove\">X</a></li>");
    });
    $("#remove_li").click(function(){
        $("li:last").remove();
    });
    $(".remove").click(function(){
        $(this).parents('li').remove();
    });
    var log = $('.remove');
    console.log(log);
    console.log(jQuery);    
});
 
    