首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

autocomplete 自动完成控件应用 简记

2012-10-28 
autocomplete 自动完成控件使用 简记一、需要准备的文件:jquery.jsneverModules-autoComplete.jsautocomple

autocomplete 自动完成控件使用 简记
一、需要准备的文件:
jquery.js
neverModules-autoComplete.js
autocomplete.css
animated_loading.gif

二、页面:
1、引入文件:


2、需要自动补全的文本框:

貌似当全页面只有一个文本框时,自动补全的时候,敲回车键,会弹出到新连接页面,再加个吧:<input id="aaaxxxx" type="text" name="sd2xxxx" style="display: none">

3、js函数:

function dosubmit(){var inputvalue = $("#operatorName").val();if(typeof(inputvalue) != "undefined") { if(typeof(keyValues[inputvalue]) == "undefined") {alert('你指定的人员不存在,请重新选择!');    return;    }    }......}


热点排行