Difference between revisions of "JQuery UI AutoComplete"

From Level Access Web Labs
Jump to navigation Jump to search
 
Line 1,399: Line 1,399:
 
minLength: 1,
 
minLength: 1,
 
}).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
 
}).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
ul.attr('role', 'listitem');
+
ul.attr('role', 'listbox');
 
return $( "<li>" )
 
return $( "<li>" )
 
.append( "<a role=\"option\">" + item.label + "</a>" )
 
.append( "<a role=\"option\">" + item.label + "</a>" )

Latest revision as of 17:24, 24 October 2014

Accessible Auto-complete Example

Available States

Please enter the state of your office location