I am trying to setup some click events inside a jquery plugin.
The plugin is acting on the tfoot of a table.
the instance of this tfoot is stored in a variable ‘foot’;
I am trying to use this;
foot.find(' > div#table_pageination > #pages > a.link').live('click', function(){
console.log('clicked');
});
However this simply has no effect.
(doing console.log(foot.find(‘ > div#table_pageination > #pages > a.link’)); returns the links I am trying to setup.
How can I get this to work?
.live()cannot be used with chaining. You can use.delegate()instead.