我想遍历我的表行,但我总是有一个错误(无法识别的表达式)。 每个函数被调用时都会出现错误。循环遍历表行
我该如何解决这个问题?
在此先感谢
这里是我的代码:
jQuery的
$("#searchValue").keyup(function() {
var table = $(this).siblings('table').not(':hidden');
$(table +" tr").each(function() {
});
});
HTML
<table id='tablePlanning' class='tablesorter'>
<thead>
<tr>
<th>PR Code</th>
<th>Klant</th>
<th>Description</th>
<th>Project status</th>
<th>Project Leader</th>
<th>Coordinator</th>
<th>Account manager</th>
<th>Billing</th>
<th>Start Datum</th>
<th>Hardware</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table id='tableProject' class='tablesorter'>
<thead>
<tr>
<th>Project ID</th>
<th>Description</th>
<th>Customer</th>
<th>Status</th>
<th>Max Hours</th>
<th>Achieved</th>
<th>Difference</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
仅有代码的答案很少有很好的答案。解释发生了什么,用户做错了什么,如何改变它等等。 –