Moon's classical result implies that the number of spanning trees of a complete graph
K
n with
n vertices containing a given spanning forest
F equals
n
c
−
2
∏
i
=
1
c
n
i, where
c is the number of components of
F, and
n
1
,
n
2
,
…
,
n
c are the numbers of vertices of component of
F. Dong and Ge extended this result to the complete bipartite graph, and obtain an interesting formula to count spanning trees of a complete bipartite graph
K
m
,
n containing a given spanning forest
F. They also posed the problem to count spanning trees of a complete
s‐partite graph containing a given spanning forest for
s
≥
3. In this paper, we propose a technique to solve this problem. Using this technique, we obtain closed formulae to count spanning trees of complete
s‐partite graphs containing a given spanning forest for
s
=
3 and 4. Our technique also results in a new and simple proof of Dong and Ge's formula.