I am having a few problems with jQuery 1.6, I am trying to select this object $('#' + id)
where id looks like skill|3345015|7868
, but console always give me a :
Error : uncaught exception: Syntax error, unrecognized expression: |3345015|7868
Thanks for your help
Try -
$("div[id='skill|3345015|7868']")
You'll have to replace 'div' with whatever element you're searching for. Or, to search all elements -
$("*[id='skill|3345015|7868']")
Demo - http://jsfiddle.net/dV7xM/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With