title: jQuery Binding a change event to all class elements
body: <p>When binding a change event to class elements there is a need for an index to be applied to discover which class element produced the change event, for example <code>[0]</code> here.</p>
  
  <pre><code>var taskData = new Array;
  $($( ".ctaskSelector" )[0]).bind('change', function () {
      var val = $(".ctaskSelector").val();
      var task_ID = taskData[val].task_ID;
      etc
  });
  </code></pre>
  
  <p>One solution is to duplicate the code for each class index.  Is there a more sensible method of approaching this?</p>