Ok, thank you for your anwer :) Appreciate it!
One more question.

If i use the code in example 2 the function gets triggered without me
clicking the link, in example 2 it gets triggered only when i click
the link.
Dont know if i´m doin anything wrong here? Shouldnt both examples work
the same?

1.
$(function() {
    $('a.link1').click(function() {
      clickFunction1();
    });
});

2.
$(function() {
    $('a.link1').click(clickFunction1());
});



function clickFunction1() {
  //code
 }

George

Reply via email to