jQuery: Uncaught Error: Syntax error, unrecognized expression September 6, 2023 by Tarik try console.log($("#"+d)); your solution is passing the double quotes as part of the string.