Code optimization - multiple events
<p>I'm just wondering if there is a best case to write this code:</p>

<pre><code>  $('#set_duration_30').click(function(event) {
    $('#duration').val(30);
  });

  $('#set_duration_60').click(function(event) {
    $('#duration').val(60);
  });

  $('#set_duration_90').click(function(event) {
    $('#duration').val(90);
  });

  $('#set_duration_120').click(function(event) {
    $('#duration').val(120);
  });
</code></pre>
