can I have an event only when I type the the 10 th charector?
<pre><code> $('#reference').keyup(function () {
        if($('#reference').val().length==10){
              callAjax();
         }
  });
</code></pre>

<p>here when i type  10 th charector on  a text box called 'reference'
it call a function
.Do any one have any improvement or better way to do this?
can I have an event only when i type the the 10 th charector?</p>
