anchor.diff:  <% if !models.nil? %>
     <% json = {} %>
     <% models.map{|m| json[m[attribute]] = m.id} %>
  +  <% err_msg = error ||= __('Please select an item from the list.') %>
   
     <input type="text" name="<%= name %>" id="<%= id %>" 
            class="js-combobox <%= classes %>" list="<%= id %>_list" 
  
positive.code:       // Display the error message if the value in the auto complete is not an item from the list
        $(combo).on('keyup', function(){
          if(<%= id %>_crosswalk[$(this).val().trim()] == undefined && $(this).val().trim().length > 1){
            $("#<%= id %>_error").html("<%= error %>").attr('role', 'alert');
            $("#<%= id %>").addClass('red-border');
          }else{
            $("#<%= id %>_error").html("").attr('role', '');
  
negative.code:           $("#<%= id %>_error").html("").attr('role', '');
            $("#<%= id %>").removeClass('red-border');
          }else{
            $("#<%= id %>_error").html("<%= err_msg %>").attr('role', 'alert');
            $("#<%= id %>").addClass('red-border');
          }
        });
  