Replacing enter key with button
<p>I have this chart generated when enter key is pressed. I want to use a simple button instead : <a href="http://www.cb-dev.tk/A/" rel="nofollow">http://www.cb-dev.tk/A/</a></p>

<p>Here is the init.js file :</p>

<pre><code>$(function(){
    var input = $('.input'),
        bar = $('.bar'),
        bw = bar.width(),
        percent = bar.find('.percent'),
        ps =  percent.find('span'),
        name = 'rotate';

    input.on('keydown', function(e){
        if (e.keyCode == 13){
            var t = $(this), val = t.val();
            if (val &gt;=0 &amp;&amp; val &lt;= 1000){
                var w = 1000-val, pw = (bw*w)/1000,
                    pa = {
                        width: w/10+'%'
                    },
                    cw = (bw-pw)/2,
                    ca = {
                        left: cw
                    }
                ps.animate(pa);                 
            } 
        }
    });
});
</code></pre>

<p>How to do it ?</p>
