0

Followig those suggestions here and here, I'm trying to escape my selector. In chrome, no problem:

Successful escaping

But with Firefox, no success:

Unsuccessful Escape tries

Error: Syntax error, unrecognized expression: input\[id^=\"form_availabilities_\"

What is the correct way?

Community
  • 1
  • 1
Olivier Pons
  • 14,839
  • 25
  • 109
  • 203
  • Aren't you missing a `]` at the end? **Edit:** just seen your comment about this on one of the answers! – andyb Oct 23 '13 at 11:04

1 Answers1

5

Why are you escaping anything?

$('input[id^=form_availabilities_]')

Done.

Niet the Dark Absol
  • 311,322
  • 76
  • 447
  • 566