I am using jQuery and have element in DOM with id="22/1"
. When I try to create object by id in jQuery using $('#22/1')
I am getting below error.
jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #22/1 at Function.ga.error (jquery.min.js:2)
at ga.tokenize (jquery.min.js:2)
at ga.select (jquery.min.js:2)
at Function.ga [as find] (jquery.min.js:2)
at r.fn.init.find (jquery.min.js:2)
at new r.fn.init (jquery.min.js:2)
at r (jquery.min.js:2)
at :1:1
So how do I can get element using jQuery? is this a but in jQuery?
Please dont suggest to use $(document.getElementById('22/1'))
.