you rock man, thanks that works. amazing stuff, I've no idea why that
would work
but apparently because of event bubbling, I'll read up on that
many thanks again
On 28 Feb, 18:52, Karl Swedberg wrote:
> Ah, in that case you might want to use the .live() binding:
>
> $( "#wiki_content a" ).live
Ah, in that case you might want to use the .live() binding:
$( "#wiki_content a" ).live('click', function(event) {
event.preventDefault();
var link = $(this).text();
searchDelay( link );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 28, 2009
thanks for the feedback, that is a much better solution, however
I don't seem to be getting hold of the tags that im after, the
problem might be the fact that the div containing the tags is not yet
populated when the jquery function to get them runs... but im not sure
the div #wiki_content is po
I think it would be a lot simpler to rely on jQuery's implicit
iteration:
$( "#wiki_content a" ).click(function(event) {
event.preventDefault();
var link = $(this).text();
searchDelay( link );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 2
4 matches
Mail list logo