iam having the table with id “someTable” where i have the rows dynamically from PHP
i want to apply the contextmenu to every first td in every row .iam using the
context menu plugin from here (http://www.trendskitchens.co.nz/jquery/contextmenu/)
$("someTable td").contextmenu('mymenu')(function (){
//would the above statement work
});
Use
:first-child::first-childwill select all matching elements (the tds) that are the first child of their parent (the tr).