$(function(){
     $('#tb').tabs('bindclick', function(index, title){
     });
 });

$.extend($.fn.tabs.methods, {
 bindclick : function(jq, caller) {
  return jq.each(function() {
   var that = this;
   $(this).children("div.tabs-header").find("ul.tabs").undelegate(
     'li', 'click.tabs').delegate(
     'li',
     'click.tabs',
     function(e) {
      if (caller && typeof (caller) == 'function') {
       var title = $(this).text();
       var index = $(that).tabs('getTabIndex',
         $(that).tabs('getTab', title));
       caller(index, title);
       if (title == "修改密码") {
        $("#sopwd")[0].focus();
       } else if (title == "个人信息") {
        // 获得光标
        $("#aname")[0].focus();
        var input = $("#aname")[0];
        var val = input.value;
        input.value = "";
        input.value = val;
       }
      }
     });
  });
 }
});

<div id="tb" class="easyui-tabs" border=false>
 <!--修改个人信息--开始  -->
  <div title="个人信息" class="selftitle">
   <form id="formupduser">
    <div style="display: none">
     <input type="hidden" id="aname1" value="${user.aname}"  />
     <input type="text" id="email1" value="${user.email}" />
     <input type="hidden" id="phone1" value="${user.phone}" />
     <input type="hidden" id="mobilephone1" value="${user.mobilephone}"  />
    </div>
    <ul class="selffon">
     <li id="xinxiweihu" style="">
      <span  class="l-btn-text l-btn-icon-left" style="background-image:
       url('<%=JToolType.jsppath%>/jquery-easyui-1.3.3/themes/icons/sum.png');">
        个人信息维护
       </span>
     </li>
     <li><span id="margin-left50"></span>类 型:
     <span>
      <c:choose>
          <c:when test="${user.issa}">   
            超级管理员
          </c:when>
          <c:otherwise> 
           普通用户
                </c:otherwise>
                   </c:choose>
       </span>
     </li>
     <li><span id="margin-left50"></span>用户名:<input type="text" id="aname" name="aname" value="${user.aname}"  /> </li>
     <li><span id="margin-left50"></span>邮 箱:<input type="text" id="email" name="email" value="${user.email}"/> </li>
     <li><span id="margin-left50"></span>固 话:<input type="text" id="phone" name="phone"  value="${user.phone}"  /> </li>
     <li><span id="margin-left50"></span>手 机:<input type="text" id="mobilephone" name="mobilephone" value="${user.mobilephone}"  /> </li>
     <li>
      <span id="margin-left70"></span> <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" plain="false" href="javascript:updateuser()">保存</a>
       <a class="easyui-linkbutton" data-options="iconCls:'icon-reload'" plain="false" href="javascript:setforminputblack('formupduser');" >清空</a>
     </li>
    </ul>
   </form>
  </div>
<!-- 修改个人信息结束 -->

<!-- 修改密码开始 -->
  <div title="修改密码" class="selftitle"    >
   <form  id="formupdpwd" data-options="onclick:'javascript:alert();'">
    <ul class="selffon">
     <li class="passwordweihu" >
     <span class="l-btn-text  l-btn-icon-left" style=" background-image: url('<%=JToolType.jsppath%>/jquery-easyui-1.3.3/themes/icons/sum.png');">
        个人密码维护
      </span>
     </li>
     <li><span id="margin-left50"></span>原始密码:<input type="password" id="sopwd" /></li>
     <li><span id="margin-left50"></span>新的密码:<input type="password" id="newpwd" /></li>
     <li><span id="margin-left50"></span>确认密码:<input type="password" id="confirmpwd" /></li>
     <li>
          <span id="margin-left70"></span>
       <a href="javascript:updateuserpwd()" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" plain="false">保存</a>
       <a href="javascript:setforminputblack('formupdpwd');" class="easyui-linkbutton" data-options="iconCls:'icon-reload'" plain="false">清空</a>
      </li>
    </ul>
   </form>
  </div>
  <!-- 修改密码结束 -->

easy ui tabs 顶部绑定事件的更多相关文章

  1. jquery easy ui 1.3.4 事件与方法的使用(3)

    3.1.easyui事件 easyui事件可以在构建的时候就通过属性方式添加上去,比如在panel收缩的时候添加一个事件,在构建的时候代码如下 onCollapse: function () { al ...

  2. 让Easy UI 的DataGrid直接内嵌的JSON对象,并重写form load 方法

    前言 我有这样的JSON对象 { "UserName": "jf", "UserPwd": "123456", &quo ...

  3. jqueryEasyUI:tabs扩展:给tabs组件绑定双击事件 分类: JqueryEasyUI 2014-09-29 14:36 537人阅读 评论(0) 收藏

    实现代码: $.extend($.fn.tabs.methods, { /** * 绑定双击事件 * @param {Object} jq * @param {Object} caller 绑定的事件 ...

  4. easy ui 下拉框绑定数据select控件

    easy ui 中的下拉框控件叫做select,具体代码如下: html代码:①.这是一个公司等级的下拉框 <tr> <td>公司等级:</td> <td&g ...

  5. JQuery Easy Ui (Tree树)详解(转)

    第一讲:JQuery Easy Ui到底是什么呢? 首先咱们知道JQuery是对Java Script的封装,是一个js库,主要提供的功能是选择器,属性修改和事件绑定等等.. JQuery ui是在j ...

  6. jquery.UI.tabs

    今天对jquery UI的tabs进行了进一步的了解,目的是想把死板的切换效果变得动感点,不过经过这进一步的了解,发现它并不合适或都说并不能实现我想要的效果,我想要的效果就是类似淘宝商城的banner ...

  7. JQuery Easy Ui dataGrid 数据表格 ---制作查询下拉菜单

    JQuery Easy Ui dataGrid 数据表格 数据表格 - DataGrid 继承$.fn.panel.defaults,使用$.fn.datagrid.defaults重载默认值.. 数 ...

  8. 玩转Web之easyui(二)-----easy ui 异步加载生成树节点(Tree),点击树生成tab(选项卡)

    关于easy ui 异步加载生成树及点击树生成选项卡,这里直接给出代码,重点部分代码中均有注释 前台: $('#tree').tree({ url: '../servlet/School_Tree?i ...

  9. easy ui Tree请求跨域数据

    扯淡篇: jQuery EasyUI为提供了大多数UI控件的使用,如:accordion,combobox,menu,dialog,tabs,validatebox,datagrid,window,t ...

随机推荐

  1. flot图插件使用

    <div id="budget-charts"></div> <script src="../../../plugins/ace/js/fl ...

  2. Harris角点算法

    特征点检测广泛应用到目标匹配.目标跟踪.三维重建等应用中,在进行目标建模时会对图像进行目标特征的提取,常用的有颜色.角点.特征点.轮廓.纹理等特征.现在开始讲解常用的特征点检测,其中Harris角点检 ...

  3. 算法之旅,直奔<algorithm>之十三 fill

    fill(vs2010) 引言 这是我学习总结<algorithm>的第十三篇,fill是一个很好的初始化工具.大学挺好,好好珍惜... 作用 fill  的作用是 给容器里一个指定的范围 ...

  4. 如何调试msbuild?

    博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:如何调试msbuild?.

  5. HP QC(Quality Center)在Windows 7 IE8 IE9下不能工作解决方案

    HP QC(Quantity Center)是一款不错的测试管理工具,公司的操作系统Windows 7登录到QC Server的Quality Center和Addin页面,客户端组件不能正常下载,从 ...

  6. 知识点整理之Java的Cookie操作

    创建Cookie // new一个Cookie对象,键值对为参数 Cookie cookie = new Cookie("key", "value"); //  ...

  7. 读取properties文件

    假设项目名称为myproject public class UtilConfig { private static final Properties prop; static { prop = new ...

  8. JVM OOM处理

    一般OOM可能情况如下: 1.OutOfMemoryError: Java heap space: 2.OutOfMemoryError: PermGen space: 3.OutOfMemoryEr ...

  9. HDU-1052(贪心策略)

    Tian Ji -- The Horse Racing Problem Description Here is a famous story in Chinese history. "Tha ...

  10. Android TabHost的使用

    标签显示界面的主要特点是可以在一个窗口中显示多组标签栏的类容. 在Android系统中,每个标签栏称为一个Tab,而包含多个标签栏的内容就称为TabHost. 通过TabHost的继承结构来看,Tab ...