Update docs for element toggleClass and getParentIndex