zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    JSDoc使用指南
    听创始人讲Quora为什么选择Python
    Bootstrap model模态框与百度地图API发生冲突时的解决办法
    使用百度地图API制作线路轨迹播放
    EF+Mysql+DDD框架搭建(一)——code first准备
    RowNumber()分页方法
    设计模式六大原则
    温习.net基础知识(二)装箱和拆箱
    温习.net基础知识(一)基础知识点
    c# 跨域api
  • 原文地址:https://www.cnblogs.com/cxxjohnson/p/4888864.html
Copyright © 2011-2022 走看看