I O U 1 mate

that seems to have solved two problems in one go, thought that maybe
both
might do that same in the end but your final solution is more correct,
before
I was getting multiple answers somehow, now I get what I want,

nice one


On 22 Feb, 22:45, Frederik Ring <[email protected]> wrote:
> Ok, so now I think I get what you want to do - I was running around
> wondering why you had the preventDefault() in there.
>
> In your case the click event isn't bound to the <a> but to your
> #wiki_article_list since you are chaining it after the append().
>
> If you would do it like:
>
> $( '#wiki_article_list' ).append( '<li><a class="wikiLinks"href="'+url
> +'">'+title+'</a></li>' );
> $('#wiki_article_list).children('li:last').children('a').click(function
> ( event ){
> //whatever
>
> });
>
> you'd have the "this" you expected in the first place!

Reply via email to