Hi developers. I’m having an issue completing step 40. I have to use the targetId
variable which takes in the value for the options input and concatenated with #
, and the class .input-container
. What I’ve tried :
const targetInputContainer = document.querySelector(targetId + " " + " .input-container");
results in error : concatenate input-container to targetId, after which i change the code to :
const targetInputContainer = document.querySelector(" input-container" + " " + targetId);
results in the error: you should pass targetId to you querySelector.
How can i solve this?
Link Challenge : link
hi, would be great if you included a link to this challenge so we can read it.
The first code you have is correct, but it has an extra space.
Either keep the empty space you are concatenating and remove the one in the class selector string, or do the opposite.