jquery Show and Hide the picture by number of question?
<p>Hey I have 10 ten image in a div(name is background).. and display properties is none..</p>

<p>I want to  show by questions number..   I mean Question=1 img1.hide(),img2.show() Question=2 img2.hide(); img3.show ............ question 10  img9.hide() img10.show</p>

<p>my function name is resim()  and it callback from Button click</p>

<p>function resim(question)  This is wrong right :) Actually this is wrong.. it doesn't work :))</p>

<pre><code>var i=0;
while (i&lt;3)
{
    if (question==i)
    {
        $("#background img").eq(i-1).hide();
        $("#background img").eq(i).show();
        i++;
    }
    else
    {
        return;
    }
}
</code></pre>

<p>but I cant do the function... How must it be? Sorry about my english</p>
