Can Trump be jailed and still win the election from inside jail? It would be extremely historical if he did it so.
Yes. Eugene Debs did it in 1920 while serving a ten year sentence for making an anti-war speech where he encouraged resisting the military draft.
https://en.wikipedia.org/wiki/Eugene_V._Debs