[jQuery] autocomplete activate first item
Posted by skoch on 3. Januar 2012$(function() { /******* extend jQuery library **/ (function( $ ) { $( “.ui-autocomplete-input” ).live( “autocompleteopen”, function() { var autocomplete = $( this ).data( “autocomplete” ); var menu = autocomplete.menu; if ( !autocomplete.options.selectFirst ) return; /* together with bgiframe this does not work as it should because bgiframe creates an iframe as the first child [...]