javascript - jQuery. Find the element where attribute isset -
i need find cell in specific row isset attribute colspan, , no matter contains
im trying this
var y = 2; // example $table.find('tr[data-y="'+y+'"] > td:not([colspan=""])');
but returns cells in row
you want attribute selector it:
var $colspanned = $table.find('tr[data-y="'+y+'"] > td[colspan]');
Comments
Post a Comment