Tony, I've done this to charge Herself's 24v scooter from the car.
All you need is a 300w inverter (Maplins, about £30). They come with a cigar lighter plug, but these don't last long, so I hard-wired into the lighter socket wiring, via a 10amp fuse. You then simply plug your 12v charger into the inverter, hey presto, mobile battery charger.Make sure though, that you connect through the ignition or alternator circuit, so that you cannot leave it on when the engine's off.
I've used this method for many years now, and I've never needed to mains charge since I set it up.
,