title: Need checkbox change event to respond to change of checked state done programmatically
body: <p>(jQuery 1.4.4) I have a checkbox that has a .change() listener that works fine for when the user clicks the checkbox, but now I also need it to fire when I programmatically change the checkbox in jQuery, using .attr('checked', 'checked').  I'm perfectly happy to use other methods to make this work.  Thanks.</p>
  
  <pre><code>$('#foo').attr('checked', 'checked'); // programmatically change the checkbox to checked, this checks the box alright
  
  $('#foo').change( function() {
    // this works when user checks the box but not when the above code runs
  }
  </code></pre>