Specify case statement in jQuery
<p>How can i convert this code to jquery</p>

<pre><code>    var tmp = "";
for (var x in y) {
switch (x) {
case "abc":
document.getElementById("apple").innerHTML = "A";
break;
case "xyz":
document.getElementById("banana").innerHTML = "X";
break;
}
}
</code></pre>
