console.log($(\'\"#\'+d+\'\"\'));
in html i have
5 eeeeeeeeeee
eeeeeeeeeee
Try this (ES5)
console.log($("#" + d));
ES6
console.log($(`#${d}`));