-3

What does this ^ mean in the following code line:

tr[class^="row"]

In the HTML how does it looks like? if used:

var rows = document.querySelectorAll('tr[class^="row"]');
supun94
  • 123
  • 7

1 Answers1

0

In a css selector, ^= means "begins with"

Please see MDN - Attribute Selectors for more information.

James
  • 20,957
  • 5
  • 26
  • 41