javascript - Colon in Jquery selector -


i have recntly updated jquery 1.4 2.1 , error started appeared.

in code have part select elements id.

jquery("*[id^=name:]")

that produces error, there no errors before(1.4)

if escape colon error disappears. have added new in latest version or bug in code?

you can wrap attribute value string literal

jquery('*[id^="name:"]') 

demo: fiddle


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -