Combine Events - Event Handler Passing
<p>I can't for the life of me figure out how you would do the following:</p>

<pre><code>$("select").change(function() {
  var cb = $(this).parent().next().find("input[type=checkbox]");
  $(this).val().length &gt; 0 ? cb.attr('checked', true) : cb.attr('checked', false) 
});
$("input[type=text]").keyup(function() {
  var cb = $(this).parent().next().find("input[type=checkbox]");
  $(this).val().length &gt; 0 ? cb.attr('checked', true) : cb.attr('checked', false) 
});
</code></pre>

<p>As one function.  Really don't like repetition, especially when they're doing the exact same thing.</p>

<p>My jQuery jedi skills aren't tailored to this scenario.</p>
