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
  • 15,363
  • 26
  • 117
  • 213
  • 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
  • 320,036
  • 81
  • 464
  • 592