id and javascript functions

id and javascript functions

I'm new to jquery, I like it. Probably dumb question:

How can I write something like:
  1. document.getElementById('id').scrollIntoView(false);

with the jquery $ syntax?
This won't work:

  1. $("#id").scrollIntoView(false);

Thanks.