JQuery:选择包含给定元素的HTML表
假设我有以下HTML
Hiring Manager
从上面的标记中,我想追加以下行
Label characters (500 max)
我希望能够从textarea中选择表格。
谢谢你的帮助
如果你想在表格中添加另一行,找到textarea,然后慢慢地按照你想要的方式工作。 要返回元素,只需再次使用.parent()。
$('#textComments').parent().parent().after(' Label characters (500 max) ' );