jquery target link click event
Posted
by Don
on Stack Overflow
See other posts from Stack Overflow
or by Don
Published on 2010-04-16T17:41:38Z
Indexed on
2010/04/16
17:43 UTC
Read the original article
Hit count: 327
$('input[name="iplus"]').click(function() {
$(ol).append("<a href='#' title='delposition' class='beschr-"+($("#billsumary ol>li").length+1)+"'>löschen</a>");
});
Hi,
i like to target the created link like $('a[title='delposition']') and assign a click-event like:
$("a[title='delposition']").click(function() {
alert("Link klicked ...");
});
...but this dont work? in order to further on retrieve the classname of that link..
© Stack Overflow or respective owner