I want to sample
console.log($('[data-id=+name+]')); When name is equal to the word "Circle" - JS finds it, and if there is a space in the phrase, for example, "test drink", then JS gives an error:
jquery.js: 1468 Uncaught Error: Syntax error, unrecognized expression: [data-id = test drink]
Tell me what to do in this case?