I need to grab the text value of a child div.
A B> 8条回答 [愿得一人] (楼主) 2021-02-04 02:31 For multiple elements with the same id: var text_val = $('#first').children('#second_child').text(); For a single element with a particular id: var text_val = $('#second_child').text(); 0 讨论(0) 查看其它8个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
For multiple elements with the same id:
var text_val = $('#first').children('#second_child').text();
For a single element with a particular id:
var text_val = $('#second_child').text();