So... when I append the <li>
below into my <ul>
, none of the <div>
pseudo-buttons respond when I click them.
$('ul').append('<li class="active">'+ $('#input').val() +'<div class="delete"><span class = "icon">x</span></div><div class = "check"><span class = "icon">---</span></div></li>');
Yet the buttons respond perfectly if I hard code the exact same <li>
into my html.
What's the difference?
Here's one of the click functions as an example.
$('.delete').click(function(){
$(this).parent().fadeOut();
});