If you drop your electronics or camera into salt water, the first thing you should do, immediately, is to dunk it into clean, fresh water to get the salt out.
Pull it apart as far as you can and wash it out in fresh water, then mop it up with clean soft towels or paper towels making sure you don't leave any fluff or paper residue behind, and let it dry for a good few hours in a warm shaded spot.
Generally, if you do that, the item should be OK and should work.
If you leave the salt on it for even an hour, the salt will destroy the electronics as it will start to corrode the contacts.