IIRC they saw initial success but saw diminishing returns as it was figured out that they scare quite easily by fire, loud noises, pike formations, etc. If you manage to panic an elephant still in the enemy lines it can do quite some damage to their troops.