I'd advocate learning JavaScript, learning the DOM and BOM, and only then learning a JavaScript framework like jQuery or YUI. Sooner or later you'll need to do some pure JavaScript development, and you'll need to know how to handle events or traverse the DOM without jQuery holding your hand. I say this as someone who has interviewed candidates for pure JavaScript roles who thought the terms jQuery and JavaScript were interchangeable.