0

I try to add a new rows to table in tbody tag when i user jQuery append function i works when the selector is $('tbody')but when it's $('tbody.layout_1')for example it doesn't work, what is the difference ?!

4

1 回答 1

1

$('tbody')选择tbody标签元素

$('tbody.layout_1')选择tbody带有类的标签元素layout_1

例子

<tbody class="layout_1">
于 2013-10-23T14:30:30.230 回答