I\'m trying to get td values of tr.. but unfortunately it\'s not working.. may be there is something wrong
My html looks like
5条回答 谎友^ (楼主) 2021-02-12 11:13 You're already filtering on the tr by its class name, so there's no need to find by tr again. jQuery(".dname").find("td:eq(1)").text() Also, you need to .text() to get the contents of a not .val(). JSBin here. Hope this helps :) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You're already filtering on the tr by its class name, so there's no need to find by tr again.
tr
jQuery(".dname").find("td:eq(1)").text()
Also, you need to .text() to get the contents of a not .val(). JSBin here. Hope this helps :) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
.text()
not .val(). JSBin here. Hope this helps :) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
.val()
JSBin here.
Hope this helps :)