zoukankan
html css js c++ java
AutoCompleteJQuery 应用
AutoComplete-JQuery 应用
今天试了一下效果,有点像Google下拉查询功能非常 棒
index.htm
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
>
<
title
>
无标题页
</
title
>
<
script
src
="thickbox/jquery-latest.js"
></
script
>
<
link
rel
="stylesheet"
href
="thickbox/main.css"
type
="text/css"
/>
<
link
rel
="stylesheet"
href
="thickbox/jquery.autocomplete.css"
type
="text/css"
/>
<
script
type
="text/javascript"
src
="thickbox/jquery.bgiframe.min.js"
></
script
>
<
script
type
="text/javascript"
src
="thickbox/jquery.autocomplete.js"
></
script
>
<
script
>
$(document).ready(
function
()
{
var
data
=
"
Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities
"
.split(
"
"
);
//
$("#example").autocomplete(data);
$(
"
#example
"
).autocomplete(
"
m.aspx
"
,
{autoFill:
true
}
);
}
);
</
script
>
</
head
>
<
body
>
<
input
type
="text"
id
="example"
/>
</
body
>
</
html
>
m.aspx
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
M.aspx.cs
"
Inherits
=
"
M
"
%>
m.aspx.cs
using
System;
using
System.Data;
using
System.Configuration;
using
System.Collections;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Web.UI.HtmlControls;
public
partial
class
M : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
Response.Write(GetValues());
}
protected
string
GetValues()
{
string
tmpstr
=
string
.Empty;
string
str
=
Request.QueryString[
"
q
"
];
if
(str
!=
null
)
{
if
(str.Length
>
0
)
{
string
[] ary
=
db.GetData(str);
//
取数据
if
(ary
!=
null
)
{
foreach
(
string
tmp
in
ary)
{
tmpstr
+=
tmp
+
"
\n
"
;
}
}
}
}
return
tmpstr;
}
}
Js下载地址
查看全文
相关阅读:
反汇编测试20191325
20191325mystat
20191325学习笔记8
20191325学习笔记7
2.3.1测试 20191325
20191214-改进ls
团队作业4
20191214-反汇编测试
stat命令的实现-mysate(必做)
图片
原文地址:https://www.cnblogs.com/skyblue/p/1523354.html
最新文章
新生代农民工—团队展示
MyOd
Linux C语言编程基础
20191323王予涵第十章学习笔记
20191323王予涵第九章学习笔记
20191323王予涵第一、二章学习笔记
2019-2020 20191323《信息安全专业导论》第四周学习总结
main参数
thread同步测试
thread互斥测试
热门文章
测试2
《Linux/Unix系统编程》第六章学习笔记-20191304
反汇编测试
《Unix/Linux系统编程》第五章学习笔记
缓冲区溢出
2.3.1测试
《Unix/Linux系统编程》第四章学习笔记-20191304商苏赫
20191325main参数
20191325 thread同步测试
实验二截图及链接20191325
Copyright © 2011-2022 走看看