Water soluble monomer like sodium p-styrene sulfonate (SSS) is copolymerized with hydrophobic and reactive monomer glycidyl methacrylate (GMA). The polymerization proceeds as dispersion and forms gels. The gel forming nature prevails even with other hydrophobic and hydrophilic monomers to form ternary polymeric systems. The swelling is dependent on polymer composition as well as the treatment history of polymers. SSS also induces ring opening of GMA to form 1,2-diols as confirmed independently by various model reactions. The ability of hydrogels to absorb various dyes indicates that owing to the anionic nature, hydrogels absorb cationic dyes nearly quantitatively. Because of their strong affinity to cationic species these hydrogel forming polymers are potentially useful in water purification applications as well as purification of proteins.