i am using jquery ui autocomlete for one of my projects, it is working fine bt what i really want is as soon as i hit enter on one of the key suggestions another suggestion box should get displayed displaying some values, so after selecting that second value the whole key-value pair gets enters in the input text field
var source1 = ['key1','key2',key3',....etc] ;
var source2 = [ 'value1','value2','value3',....etc] ; $('#firstInput').autocomplete
({ source: source1,
select: function(event, ui)
{ $('#firstInput').autocomplete({ source:source2});
}
});
i applied the above code but dsn't work.........only autocomplete gets applied for the first time..:( –
selectfunction? that may help