Answer:
due to adhesive forces.
Explanation:
every molecule has two types of forces
1) cohesive force
(attachment of molecule with another molecule of same kind)
2) adhesive force
(attachment of molecule with another molecule of different kind)
water has both cohesive and adhesive forces. by cohesive force a water molecule attaches with another water molecule and by adhesive force a water molecule attaches with glass or any thing else .