JQuery on Click event function call
$(".menu_link").click(GetContentAndSlide);
remove the ()
, you are executing the function, instead of passing the function reference.
Another option would be (in case your function uses the this
pointer) to wrap it around with a anonymous function:
$(".menu_link").click(function() {GetContentAndSlide()});