• jquery自动补全


    自动不全js下载地址 

    http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <%
     String path = request.getContextPath();
     String basePath = request.getScheme() + "://"
       + request.getServerName() + ":" + request.getServerPort()
       + path + "/";
    %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
     <head>
      <base href="<%=basePath%>">

      <title>My JSP 'index.jsp' starting page</title>
      <meta http-equiv="pragma" content="no-cache">
      <meta http-equiv="cache-control" content="no-cache">
      <meta http-equiv="expires" content="0">
      <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
      <meta http-equiv="description" content="This is my page">
      <!--
     <link rel="stylesheet" type="text/css" href="styles.css">
     -->
      <script type="text/javascript" src="<%=request.getContextPath() %>/resource/lib/jquery.js"></script>
      <script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/jquery.bgiframe.min.js'></script>
      <script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/jquery.ajaxQueue.js'></script>
      <script type='text/javascript' src='<%=request.getContextPath() %>/resource/lib/thickbox-compressed.js'></script>
      <script type='text/javascript' src='<%=request.getContextPath() %>/resource/jquery.autocomplete.js'></script>

      <script type='text/javascript' src='<%=request.getContextPath() %>/resource/localdata.js'></script>
      <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/demo/main.css" />
      <link rel="stylesheet" type="text/css"
       href="<%=request.getContextPath() %>/resource/jquery.autocomplete.css" />
      <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/lib/thickbox.css" />
     </head>
     <script type="text/javascript">
     $().ready(function() {
     var str="method=getData";
     var cities=["a12","b13","a14","b14","b13"];
         $("#auto").focus().autocomplete(cities);
     });
     
     
     
     </script>
     <body>
      <input type="text" id="auto" />
      <br>
     </body>
    </html>

  • 相关阅读:
    Windows Phone 应用程序的全球化 狼人:
    幽默:编程语言 / 操作系统
    幽默:编程语言 / 操作系统
    程序员的幽默
    游戏杆编程心得二:如何判断按钮的有效按下
    DirectX 7.0 SDK在VC 6.0环境中使用的注意事项
    游戏杆编程心得
    HTML 5 WebSocket 示例
    HTML 5 WebSocket 示例
    慎用VC 6.0
  • 原文地址:https://www.cnblogs.com/liaomin416100569/p/9331785.html
Copyright © 2020-2023  润新知