Jquery typing letters as mobile keyboard
<p>Ok can anyone help?</p>

<p>I have an array of letters  var arr=[a, b, c]
I want to achieve something like mobile phone typing (old ones :)</p>

<p>If user clicks anywhere once in 2 seconds jquery 'll put into textbox a letter a. If user clicks twice in two seconds jquery 'll put letter b in to the textbox, ant also c if he click three times in two seconds...</p>

<p>Thank you</p>

<p>This is what I have:
                          case:</p>

<pre><code>                            var myInterval = setInterval(function () {
                                countLetters=0;

                            }, 2000);
                        }


                        var sellectedBoxLetters = $('div.gh_h2.gh_v1.js_item.selected').attr('title'); //this gets array of 3 letters a, b, c
                        if (sellectedBoxLetters != null) 
                            substr = sellectedBoxLetters.split(' '); // this gets letter by letter

                            $("input#search").val($('input#search').val() + substr[countLetters]); //this puts the value into the box but without hops ..all letters
                            countLetters++;
</code></pre>
