jQuery查找值是X的表单元格 [英] Jquery find table cell where value is X
本文介绍了jQuery查找值是X的表单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图找到一个值为5的<td>
.它是一个压光机,所以只有5个值.
I am trying to find a <td>
where the value is 5. It is a calender so there will only be one 5 value.
推荐答案
您可以使用过滤器方法:
You can use filter method:
$('td').filter(function(){
return $(this).text() === '5'
})
这篇关于jQuery查找值是X的表单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文