<input id=auto_c>
JQuery
<script>
$(document).ready(function() {
////////////////
$( "#auto_c" ).autocomplete({
source: [ "PHP", "JQuery", "JavaScript", "HTML", "ASP",
"MySQL","Access","Excel","Dot Net" ]
});
///////////////
})
</script>
minLength |
Type : Integer Default value1 User must type minimum number of chars before the filter ( search ) as applied, for a large number of items it is better to keep a higher value. For local data or less data we can keep it minimum or zero.
DEMO of minLength setting
To get value of minLength
To set value for minLength
|
Methods | |
close | |
Closes the open menu of autocomplete.
|
destroy |
Removes functionality of autocomplete.
|
disable |
Disable autocomplete.
|
enable |
Enable autocomplete functionality.
|
widget |
We can get juqery object containing menu element.
|
Events | |
change | |
Triggers when autocomplete input is blured ( when focus moves out ).
|
create |
Triggers when autocomplete is created.
Event listner
$( "#auto_c" ).on( "autocompletecreate", function( event, ui ) { } ); |
Most Popular JQuery Scripts | |
1 | Two dependant list boxes |
2 | Calendar with Date Selection |
3 | Data change by Slider |
4 | Show & Hide element |