Number of seconds Convert the Persian numbers
<p>I want number of seconds convert the Persian numbers (Countdown of 20 to 0), i try that, but i did not succeed, in following is my full code. How do i do?</p>

<p><strong>Demo:</strong> <a href="http://jsfiddle.net/JBzv7/" rel="nofollow">http://jsfiddle.net/JBzv7/</a></p>

<p>HTML:</p>

<pre><code>&lt;div id="#Seconds" style="font-size: 40px;"&gt;
20
&lt;/div&gt;​
</code></pre>

<p>Jquery:</p>

<pre><code>var rep = {
        '0': '&amp;#1776;',
        '1': '&amp;#1777;',
        '2': '&amp;#1778;',
        '3': '&amp;#1779;',
        '4': '&amp;#1780;',
        '5': '&amp;#1781;',
        '6': '&amp;#1782;',
        '7': '&amp;#1783;',
        '8': '&amp;#1784;',
        '9': '&amp;#1785;',
        ':': ':',
    }

var str = '';
var sec = 20

var timer = setInterval(function() {

    var sss = sec--;
    var arr = sss.split("");                        

    for (i = 0; i &lt; arr.length; i++) {
    str += rep[arr[i]];
    }
    alert(str)
    $('#Seconds').text(str);

   if (sss == -1) {
      alert('ok');
      clearInterval(timer);
    }
},1000);​
</code></pre>
