当文本输入(id ="Questions")获得焦点时,我想显示所有Typeahead项目.我该怎么做?
使用Javascript:
function SetTypeahead() {
$("#Questions").typeahead({
minLength: 0,
source: [
"Q1?",
"Q2?",
"Q3?",
"@4?"
]
});
}
Run Code Online (Sandbox Code Playgroud)