设为首页 加入收藏

TOP

用jQuery给Checkbox默认加上父子节点操作
2014-11-23 22:03:21 】 浏览:380
Tags:jQuery Checkbox 默认 加上 父子 节点 操作

  jQuery.noConflict();//与JSF搭配需要这句话,不然会有冲突


  jQuery(document).ready(function() {


  // Add click event listener to each checkbox in the tree page


  // Note! Using this simple selector assumes that there are no other


  // checkboxes on the page, if there are other checkboxes then


  // selector should be changed


  jQuery(":checkbox").click(function(){


  updateChildren(this);


  updateParent(this);


  });


  });


  




】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Java J2EE中文问题终极解决之道 下一篇计算机二级辅导:java与json的使用..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目