Hooking the 12v charger across 24v is wrong and it likely fried your charger. You can leave the batteries hooked together but you can only charge one at a time.
NEVER fail to respect the energy of batteries wired in series. One slip of a wrench and you'll think you got struck by lightning.
