tags:

views:

36

answers:

2

How can i implement a code for auto-clicking

<a href="#" class="link">test</a>

type links?

$('a.link').click();

doesn't work

A: 
$('a.link').click(function(){
   // you jquery ajax code
});

you can then go like

$('someotherelement').click(function(){
    $('a.link').trigger('click');
});
XGreen
is this what you are looking for?
XGreen
+1  A: 

Now i figured out. This is working:

$('a.l_like').each(function(index) {
    $(this).click();
});
cnkt