70-480 question 61 discussion

answered

You are implementing an application by using HTML5 and JavaScript. A web page
contains the following HTML table.


The application must:
✑ Identify all rows in the table body that have a class attribute of selected
✑ Exclude the last selected row in the table
You need to implement the web page according to the requirements.
Which CSS selector should you use?

  • A. tr:not(tr:last-child).selected < #dataTable
  • B. #dataTable > tr.selected:not(tr:last-child)
  • C. #dataTable tbody tr.selected:not(tr:last-child)
  • D. #dataTable tr.selected:not(tr:last-child)
Created 4 months ago by m4rkux

m4rkux

is it not to select the rows in the tfoot too? I thought it was lettle D

felipebotelhofelipe

It is correct. "Identify all rows in the table body"