• easyui-combo个人实例


    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <link rel="stylesheet" type="text/css"
    href="<%=path%>/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
    href="<%=path%>/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/easyui/demo.css">
    <script type="text/javascript"
    src="<%=path%>/easyui/jquery-1.7.2.min.js"></script>
    <script type="text/javascript"
    src="<%=path%>/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript">
    $(function(){
    $("#cc").combo({
    required:true,
    eidtable:false,
    '200px'
    });
    $("#sp").appendTo($("#cc").combo('panel'));
    $("#sp input").click(function(){
    var v = $(this).val();
    var s = $(this).next('span').text();
    $("#cc").combo('setValue',v).combo('setText',s).combo('hidePanel');
    });
    });
    </script>
    </head>
    <body>
    <select id="cc"></select>
    <div id="sp">
    <input type="radio" name="lang" value="01"><span>C#</span><br>
    <input type="radio" name="lang" value="02"><span>JAVA</span><br>
    <input type="radio" name="lang" value="03"><span>数据结构</span><br>
    <input type="radio" name="lang" value="04"><span>算法</span><br>
    <input type="radio" name="lang" value="05"><span>C++</span><br>
    </div>
    </body>
    </html>

  • 相关阅读:
    关于 Blog 修改
    How To Manage StartUp Applications In Ubuntu
    C++11 之for 新解 auto
    How To Install Cacti On Ubuntu 14
    Apache 2 解析html中的php
    Raspberry Pi
    Compiling a kernel module for the raspberry pi 2 via Ubuntu host
    ubuntu 14.04/14.10 iptables 防火墙设置
    ajax概述
    ajax 异步 通信 小例子 servlet与 jsp异步 post方法
  • 原文地址:https://www.cnblogs.com/cxxjohnson/p/4888864.html
Copyright © 2020-2023  润新知