If you’ve run into $ is not defined while adding your jQuery code to WordPress you’ve came to the right place.
I think WordPress is doing this to avoid conflicts with other plugins.
But for those who is tired of typing jQuery instead of $ here is a nice snippet:
(function($) {
// Your code here with $('selectors')
})( jQuery );