2

I saw the below jquery selector and believe it means to find any element with an id that starts with "_foo_bar", is that right? How does this work and where is the doc for something like this?

$('[id*="_foo_bar"]').click...
Josh Crozier
  • 219,308
  • 53
  • 366
  • 287
stackjlei
  • 8,765
  • 16
  • 51
  • 106

1 Answers1

1

This will selects elements that have the id with a value containing _foo_bar. Its documentation is here: https://api.jquery.com/category/selectors/

Luiz Rossi
  • 662
  • 5
  • 17