jQuery隐藏表行 [英] Jquery Hide table rows

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

问题描述

我隐藏了一堆文本框,并且工作正常,问题是,这些文本框位于表中,因此我还需要隐藏相应的标签.结构是这样的

I am hiding a bunch of textboxes and it works fine, the problem is, the textboxes are in a table, so I also need to hide the corresponding labels. the structure is something like this

<tr>
<td>
Label
</td>
<td>
InputFile
</td>
</tr>

实际上,如果我隐藏具有fileinput的行,那会更容易,有人可以帮忙吗

in fact its just easier if I hide the rows that have a fileinput , can someone help please

推荐答案

这可能对您有用...

this might work for you...

$('.trhideclass1').hide();

 

<tr class="trhideclass1">
  <td>Label</td>
  <td>InputFile</td>
</tr>

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

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