The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript $(this).closest is not a function? Re: $(this).closest is not a function?

Rob MacKay

Just to say something probably you have already done – or know…

But have you linked in your jQuery library? Just because closest is a function within jQuery – if it can’t find that function then my first thought is whether the library has been pulled in?