If both are in jail can they still get married and how would they do that?

yes b/c all they have to do is have them put the ring on each other but they wouldn't be married leagaly