我正在使用jquery autocomplete combo Box 及其所有工作大国。
访问 。
问题在于,我想使这个 com子能够在盒子中点击案文后选定,以便用户能够在不清除旧案文的情况下开始寻找下台。
我尝试用美元(文件)进行测试。 ......
//clear each option if its selected
$( #<%=combobox.ClientID %> option ).each(function () {
$(this).removeAttr( selected )
});
//set the first option as selected
$( #<%=combobox.ClientID %> option:first ).attr( selected , selected );
//set the text of the input field to the text of the first option
$( #<%=combobox.ClientID %> ).parent().children( input.ui-autocomplete-input ).val( );
工作......
事先感谢您的帮助。