Let
F
\mathbb {F}
be a finite field and
T
T
a transcendental element over
F
\mathbb {F}
. An imaginary function field is defined to be a function field such that the prime at infinity is inert or totally ramified. For the totally imaginary case, in a recent paper the second author constructed infinitely many function fields of any fixed degree over
F
(
T
)
\mathbb {F}(T)
in which the prime at infinity is totally ramified and with ideal class numbers divisible by any given positive integer greater than 1. In this paper, we complete the imaginary case by proving the corresponding result for function fields in which the prime at infinity is inert. Specifically, we show that for relatively prime integers
m
m
and
n
n
, there are infinitely many function fields
K
K
of fixed degree
m
m
such that the class group of
K
K
contains a subgroup isomorphic to
(
Z
/
n
Z
)
m
−
1
(\mathbb {Z}/n\mathbb {Z})^{m-1}
and the prime at infinity is inert.