So I have a INPUT TEXT that upon keypress=enter prepends an LI to an UL
The LI contains a LINK that gives the user the option to remove it from the UL
HTML (on page load)
<ul id="conditionList"></ul>
after ther user inputs some conditions, the UL gets populated with LI
<li>condition<a href="#" class="clearitem">x</a></li>
However, in my jQuery
$('#conditionList a.clearitem').click(function(){
$(this).parent().remove();
});
will not work!
Is it because it's not recognizing the new LI's?