Demo of Autocomplete delay option in JQuery UI
Change this to
Change the delay to see the effect on autocomplete menu
source: [ "PHP", "JQuery", "JavaScript", "HTML", "ASP", "Perl", "MySQL","Access","Excel","Dot Net" ],
HTML
<input id=auto_c>
<div id=d1></div>
Change this to
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r1' value='100' >100</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r1' value='300' checked>300</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r2' value='500' >500</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r2' value='1000' >1000</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r2' value='2000' >2000</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r2' value='3000' >3000</label>
</div>
jquery
<script>
$(document).ready(function() {
////////////////
$( "#auto_c" ).autocomplete({
source: [ "PHP", "JQuery", "JavaScript", "HTML", "ASP", "Perl", "MySQL","Access","Excel","Dot Net" ],
});
///////////////
var status_used = $( "#auto_c" ).autocomplete( "option", "delay" );
$('#d1').html( " <b>Status of delay : </b>: " + status_used );
//////////
$("input:radio[name=r1]").click(function() {
var sel=$(this).val()
$( "#auto_c" ).autocomplete( "option", "delay", sel );
var status_used = $( "#auto_c" ).autocomplete( "option", "delay" );
$('#d1').html( " <b>Status of delay : </b>: " + status_used );
})
///////////////////////
})</script>