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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -