Update docs to reflect being able to pass an element instead of ID.

Documentation clarification (#844)