The invention relates to a heat / electric responding hydrogel color changing glass material based on ionic liquid modification. The material is obtained by dissolving a heat responding monomer, an ionic liquid, a crosslinking agent, an initiator, and a catalyst into water to carry out polymerization; wherein the heat responding monomer is a mixture composed one or more of N-isopropyl acrylamide, N-tert-butyl acrylamide, and N-vinyl caprolactam. The chemical structural formula of the ionic liquid is shown in the description, in the formula, R1, R2, and R3 independently represent a C1-C8 alkyl group, and X<-> represents Cl<->, Br<->, I<->, NO3<->, SO4<2->, PO4<3->, or OH<->. The crosslinking agent is divinyl purpurine derivatives. Through the technical scheme mentioned above, a heat / electric responding hydrogel color changing glass material can be obtained; the responding property to the change of environmental conditions is enhanced, and the temperature controllability, stability, and service life of color changing devices are all improved.