$('
\ \ Delete a textfield
').insertBefore('#clicker').find("span.del").click(function(){ keyword_counts--; $(this).parent().remove(); });