Jquery Elegant code 1
<p>What's a better and more elegant way of writing this jquery code?</p>

<pre><code>$('#email-prompt').submit(function(e) {
    e.preventDefault();
    $('#email-prompt, #mask').fadeOut();
    $('.email-prompt').fadeOut().remove();
    $('.count').delay(500).fadeIn();
    $('.notice').delay(1000).fadeIn();

    $('.count.beta span').countTo({
        from: 0,
        to: 2281,
        speed: 1500,
        refreshInterval: 50
    });

    $('.count.alpha span').countTo({
        from: 0,
        to: 3227,
        speed: 1500,
        refreshInterval: 50
    });

    $('.count.charlie span').countTo({
        from: 0,
        to: 2134,
        speed: 1500,
        refreshInterval: 50
    });
});
</code></pre>

<p>Also, please share some tips and best practices on writing organized jquery code.</p>

<p>Thanks! </p>
