21. No elector who has voted at any election shall, at the hearing of any election petition or other petition, be required to state for whom he has voted.