I am trying to find a where the value is 5. It is a calender so there will only be one 5 value. 2条回答 梦毁少年i (楼主) 2021-02-20 02:02 Use the :contains selector: var td = $("td:contains('5')"); Edit: This will also select the td with 15 and 25, if you want exact 5, then use the .filter method as the other answer said. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
where the value is 5. It is a calender so there will only be one 5 value. 2条回答 梦毁少年i (楼主) 2021-02-20 02:02 Use the :contains selector: var td = $("td:contains('5')"); Edit: This will also select the td with 15 and 25, if you want exact 5, then use the .filter method as the other answer said. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Use the :contains selector:
var td = $("td:contains('5')");
Edit: This will also select the td with 15 and 25, if you want exact 5, then use the .filter method as the other answer said.
15
25
5
.filter