An electrochromic resin composition comprising (A) 100 parts by weight of a network comprising a crosslinked polymer containing 4,4′-diaminodiphenylmethane units in a form in which the amino groups in the formula are quaternized, and (B) 5 to 150 parts by weight of an electrolytic material uniformly dispersed in the network (A). The crosslinked polymer containing the units with the amino groups therein being the quaternized state is useful as an electrochromic or photochromic material.