i create some links on the fly …
$('input[name="iplus"]').click(function() {
$(ol).append("<a href='#' title='delposition' class='beschr-"+($("#billsumary ol>li").length+1)+"'>löschen</a>");
});
now I like to target each created link like $(‘a[title=’delposition’]’) and assign a click-event like:
$("a[title='delposition']").click(function() {
alert("Link klicked ...");
});
…but this dont do it?
Any suggestions?
The live() method of JQuery should do the trick: