One good source of electrolytes is potato chips.

We will often pick up a small bag of them along the way.
An excellent source of electrolytes is salted almonds ... on really long rides, I'll have a small baggie of them on board.
Beef jerky washed down with orange juice is another decent source.