So say $A$ a ring of dimension $1$. Let $J$ be an ideal of $A$ that can be factored as a product of maximal ideals, $J = P_1^{a_1} \dotsc P_s^{a_s}$ and let $M$ be any maximal ideal of $A$. Apparently $J_M = (MA_M)^{a_i}$ if $M = P_i$ for some $i$, and $J_M = A_M$ if M \neq P_i$ for all $i = 1,...,s$.
The second part is easy enough, but how do you show the first part?