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

jsfiddle

you want attribute selector it:

var $colspanned = $table.find('tr[data-y="'+y+'"] > td[colspan]'); 

-jsfiddle-


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -