It's a bit hard to say from the pic precisely which snail it is, but if it's a bladder snail, or young pond snail, or a ramshorn, they all lay eggs in water, usually in little blobs of gel, on almost any surface available, including plants, glass, rocks, etc.