简体   繁体   中英

jQuery selectors correct escaping

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

成功逃脱

But with Firefox, no success:

逃生尝试失败

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

What is the correct way?

Why are you escaping anything?

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

Done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM