12v batteries in series with two motors

I am building my own 24v trike. Power will be provided by two 12 volt batteries in series. Because of the logistics of the batteries and motors I was hoping I could attach one 24 volt motor to either end of the batteries with a switch on the positive side of each motor. It seems like it should work but I’m not sure. Does anyone know if this will work?
Here’s a link to what I am talking about…
Thanks, JY