Is there an alternative to using if or case in jQuery?
<p>I have about 10 pictures, when <code>:hover</code> each picture there is an <code>ajax.load</code> that will be trigger. I am about to do 10 <code>jquery.hover</code>, but something tells me there is a better solution.</p>

<p>I was thinking about somthing like</p>

<pre><code>case 1 : load a
case 2 : load b
case 3 : load c
etc...
</code></pre>

<p>How would I do this in jquery?</p>

<p>Understand the 10 different picture with 10 different text must be loaded in the <code>&lt;div&gt;</code> so now i am doing </p>

<pre><code>$('#a).hover.load('file' #tx-a');
$('#b).hover.load('file' #tx-b');
$('#c).hover.load('file' #tx-c');
</code></pre>
