I'm getting the following error:
Uncaught ReferenceError: position is not defined
What's wrong with the code?
$(document).ready(function () {
$('.main_menu a').click(function () {
var g = '.' + $(this).attr('href').replace('#','') + position.top;
console.log(g);
return false;
});
});