aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/categories.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/autocomplete/categories.html')
-rw-r--r--demos/autocomplete/categories.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html
index 3c436efbd..998ae9ea6 100644
--- a/demos/autocomplete/categories.html
+++ b/demos/autocomplete/categories.html
@@ -29,11 +29,15 @@
var that = this,
currentCategory = "";
$.each( items, function( index, item ) {
+ var li;
if ( item.category != currentCategory ) {
ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
currentCategory = item.category;
}
- that._renderItemData( ul, item );
+ li = that._renderItemData( ul, item );
+ if ( item.category ) {
+ li.attr( "aria-label", item.category + " : " + item.label );
+ }
});
}
});