jquery not just write a lot of click function
<p>I have a question about jquery <code>onclick</code> function, the question is not bug;
when i write some button click functions that use jquery, i have write a lot of jquery, for example:</p>

<pre><code>$(document).ready(function(){
    $('#dp1').datepicker({
            format: 'yyyy-mm-dd'
    });
    $('#dp2').datepicker({
            format: 'yyyy-mm-dd'
    });

    $("#addNewQ").on('click', function(){
       .......
    });
    $('#addNew').on('click', function(){
       .......
    });
    $('#addText').on('click', function(){
       .......
    });

});
</code></pre>

<p>My question is how to write this better. I don't want to write a lot of click functions.</p>

<p>I have try to google, but I don't know the keyword. Thanks !</p>
