Not making it a string
<p>In this situation, for example, if <code>$(this).text()</code> becomes 0, it will not work since in the switch 0 is not equal to "0".</p>

<p>In my assignment, I cannot remove " " from case.</p>

<p>So basically <code>$(this).text()</code> has to become a string somehow. Any ideas?</p>

<p>Thanks!</p>

<pre><code>...
$( '.xyz' ).click( function()...
  var key = $(this).text();
  switch( key ) {
    case "0":
    case "00":
    case "1":
    case "2":
    case "3":
    case "4":
    case "5":
    case "6":
    case "7":
    case "8":
    case "9":
    ...
</code></pre>

<p><a href="https://gist.github.com/188d81480a1503d1985b" rel="nofollow">https://gist.github.com/188d81480a1503d1985b</a></p>
