The positive elements of salt, which dissociate and are free-floating positively charged ions in water, are strongly attracted to the negative charge on the DNA. This salt attraction causes the DNA to become attracted to those ions rather than to the positive polarity of water molecules, allowing it to pull away from water easily when a less-polar solvent such as ethanol is added.