Q:

how can i append a class to jquery ui helper result

i am trying to append a class to jquery ui autocomplete message response. i tried a few things but no luck. here is the code from jquery ui that i am trying to append the style to
e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search 
results.",results:function(e){return e+(e>1?" results are":" result is")+" available"}}}

here i am trying to add a class to No Search Results and another to x Results are available. any suggestions?

A:

how about something like:
e.widget("ui.autocomplete", e.ui.autocomplete, {
      options: {
        messages: {
          noResults: "No search 
results.",
          results: function(e) {
            return '<span class="my-class">' + e + (e > 1 ? " results are" : " result is") + " available</span>"
          }
        }
      }

