Javelineers, both the infantry and the mounted versions, are actually the weapon of choice against elephants. Don't bother with archers, unless you explicitly want to make the elephants go berserk.
Against chariots, I'd recommend some mid-tier spearmen, like Thureophoroi. But any decent melee infantry should do the trick.
Bookmarks