I am simply trying to scroll to an element that was clicked on but I keep getting this error:

SCRIPT5007: Unable to get value of the property 'top': object is null or undefined

Any help with this would be appreciated.

	var thisTerm = $('#glossaryContent span').filter(function() {
		return $(this).text() == evt;
	var scrollPosition = thisTerm.position().top;
	var currentTermPosition = thisTerm.position().top;