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
  • 233,099
  • 56
  • 391
  • 304
stackjlei
  • 9,485
  • 18
  • 65
  • 113

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
  • 772
  • 5
  • 19