diff --git a/lib/assets/javascripts/autocomplete-rails-uncompressed.js b/lib/assets/javascripts/autocomplete-rails-uncompressed.js
index <HASH>..<HASH> 100644
--- a/lib/assets/javascripts/autocomplete-rails-uncompressed.js
+++ b/lib/assets/javascripts/autocomplete-rails-uncompressed.js
@@ -81,7 +81,14 @@
                 	return;
                 }
                 for (var key in update_elements) {
-                    jQuery(update_elements[key]).val(ui.item ? data[key] : "");
+                    element = jQuery(update_elements[key]);
+                    if (element.is(':checkbox')) {
+                        if (data[key] != null) {
+                            element.prop('checked', data[key]);
+                        }
+                    } else {
+                        element.val(ui.item ? data[key] : "");
+                    }
                 }
             }
         },
@@ -115,7 +122,14 @@
               var data = jQuery(this).data(ui.item.id.toString());
               var update_elements = jQuery.parseJSON(jQuery(this).attr("data-update-elements"));
               for (var key in update_elements) {
-                jQuery(update_elements[key]).val(data[key]);
+                  element = jQuery(update_elements[key]);
+                  if (element.is(':checkbox')) {
+                      if (data[key] != null) {
+                          element.prop('checked', data[key]);
+                      }
+                  } else {
+                      element.val(data[key]);
+                  }
               }
             }
           }
* Fixes crowdint/rails3-jquery-autocomplete#<I> Enable setting check boxes when an autocomplete entry is selected