Let $A$ be a Dedekind domain and $I$ a nonzero ideal of $A$. For every $a \in I$, $(a)$ is contained in $I$, so $I$ divides $(a)$ and there exists some ideal $J_a$ such that $(a)=IJ_a$. We have $$I=\bigcup_{a \in I}(a)=\bigcup_{a \in I}I J_{a}.$$
Now pick some $a'\neq 0$ in $I$. We have $$(a')=IJ_{a'}=\bigcup_{a \in I}I J_{a} J_{a'}=\bigcup_{a \in I}(a') J_{a}.$$ Therefore there exists some $x \in A$, $b \in I$ and $j \in J_{b}$ so that $$a'=xja',$$ so $xj=1$, $J_{b}=A$ and $(b)=I$.
But not every ideal of a Dedekind domain is principal. Where did I go wrong?
Multiplication of an ideal $I$ with a set $S$ which generates an ideal $(S)=\sum_{s\in S}As$ is $IS=\{ \sum_j i_js_j,i_j\in I,s_j\in S\}$, you don't have $I\{ S_1 \cup S_2\} = IS_1\cup IS_2$ but $I\{ S_1 \cup S_2\}= (IS_1\cup IS_2)$ and $I(S_1\cup S_2)=I\{S_1 \cup S_1\}\supset IS_1\cup IS_2$
You are right that it makes my argument in your previous question wrong (which was about finding, in a number field, an element $i\in I$ such that $(i)=IJ, (I,J)=(1)$)