A misplaced modifier is a word, phrase, or clause that is improperly separated from the word it modifies/complements. In sentence 2, the phrase "with a trunk" is placed too far from the noun "elephant" that it is intended to modify. This creates an awkward and humorous image.
Answer: I saw an elephant with a trunk walking down the street.