Here the way to enable/disable several text inputs depending on the
state of checkboxes located just after each one.

$(':text~:checkbox').change(
  function(){
     $(this).prev()[0].disabled = !(this.checked);
  }
);

Hope this can help others.

Reply via email to