复选框以隐藏/显示表格行 [英] checkbox to hide/show table rows

查看:84
本文介绍了复选框以隐藏/显示表格行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哇...我已经搜索了这个主题的最后2个小时了,我仍然没有找到一个简单的例子,说明如果一个复选框是如何使用javascript来显示/隐藏div标记的表格行选中...如果选中复选框,表格行将被隐藏...如果未选中该复选框,则表格可见...


有人可以直接我要正确的信息?或者为这个简单的问题发布一些简单的代码...


谢谢

解决方案

展开 | 选择 | Wrap | 行号


谢谢...起初它没有用,但我注意到你写的代码visibilit y,而不是visibility......


感谢代码......我希望我能正确安装它!


是的,在代码部分它似乎是一个bug我我会调查这个问题。


wow... i''ve searched for the last 2 hours on this subject, and i still have yet to find one SIMPLE example of how to use javascript to show/hide a div-tagged table row if a checkbox is checked... if the checkbox is checked, the table row is hidden... if the checkbox isn''t checked, the table is visible...

can someone please direct me to the proper information? or post some easy code for this SIMPLE problem...

thanks

解决方案

Expand|Select|Wrap|Line Numbers


thanks... at first it didn''t work, but i noticed your code you wrote "visibilit y", instead of "visibility"...

thanks for the code... i hope i can install it correctly!


yeah in the code section it seems to be a bug i''ll look into this problem.


这篇关于复选框以隐藏/显示表格行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆