$(function() { 

  var theTable = $('table.food_planner')



  theTable.find("tbody > tr").find("td:eq(1)").mousedown(function(){

    $(this).prev().find(":checkbox").click()

  });



  $("#filter").keyup(function() {

    $.uiTableFilter( theTable, this.value );

  })



  $('#filter-form').submit(function(){

    theTable.find("tbody > tr:visible > td:eq(1)").mousedown();

    return false;

  }).focus(); //Give focus to input field

});  

Check off the foods you want to eat today.

Filter:

Your Food List
     Beef, ground, 95% lean meat / 5% fat, patty, cooked, broiled
     Bread, rye, toasted
     Broccoli, cooked, boiled, drained, with salt
     Butter, salted
     CAMPBELL Soup Company, CAMPBELL'S CHUNKY Microwavable Bowls, Chicken and Dumplings Soup
     CAMPBELL Soup Company, CAMPBELL'S CHUNKY Soups, Fajita Chicken with Rice & Beans Soup
     Carrots, baby, raw
     Cheese, swiss
     Chicken breast, oven-roasted, fat-free, sliced
     Coffee, brewed from grounds, prepared with tap water
     Egg, whole, cooked, omelet
     English muffins, wheat, toasted
     Fish, sea bass, mixed species, cooked, dry heat
     HEINZ, WEIGHT WATCHER, Chocolate Eclair, frozen
     Mayonnaise, reduced-calorie or diet, cholesterol-free
     Oil, olive, salad or cooking
     Oranges, raw, Florida
     Rice, white, long-grain, parboiled, enriched, cooked
     Rolls, hamburger or hotdog, plain
     Tea, ready-to-drink, LIPTON BRISK iced tea, with lemon flavor