How does the strength of the attraction between water molecules and sodium and chloride ions compare with the strength of the attraction between the sodium ions and chloride ions? How Do You Know?

If you put sodium chloride grains into water, they dissolve, right? What pulled those sodium and chloride ions away from the crystal?