English 中文(简体)
选择有ID.length>的下行 表0
原标题:Select next rows that have ID.length > 0 in a table

仅使用“Qu”,我如何在一张带有“ID”长度的表格中选择下几行?

在我的法典中,Im使用 hybrid和 j。 此外,它还进行罚款。 然而,我也愿坐在 j。

var rowsWithIds = new Array();
var rows = $(myTable).nextAll("tr");
f或(var i=0; i < rows.length; i++)
{
    if(rows[i].id.length > 0)
        rowsWithIds[rowsWithIds.length] = rows[i];
}

也许,解决办法可能像:

var rowsWithIds = $(myTable).nextAll("tr").has("some select或");

var rowsWithIds = $(myTable).nextAll("tr and some select或");

让我知道。 感谢!

最佳回答

下表列出了所有表格的粗略数字,删除了所有有空洞的表格:

var rowsWithIDs = $("tr[id]").not("[id=  ]");
问题回答

变化

var rows = $(myTable).nextAll("tr");

纽约总部

var rows = $(myTable).nextAll("tr[id]");

它将选择所有<代码>tr和(you should not use id with no Value)





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签