i have a problem when,i add a link with a class="add-item" using append function in page,
this link added to page more than one times,thats mean i want add a list with mentioned link that when click on any of them run one function when i add this link handwork to page isnt problem,but when i add link with jquery append my func isnt running
please check below codes //add link
$temp.append("<li>" + $("input[name=title]").val() + "<a href='#' class= 'add-item' >(Add)</a><ul></ul>");
$(".add-item").click(function(){
some code ...
});