Why does salt dissolve in water?

Why does salt dissolve in water?

Where does it go when it is put in water?