UPDATE: I modified codes in your question for better readability @Adam P. trying to get a text area on selecting multi line text from drop down list SIMAILARLY on selecting single choice add 1 text box below the question and on selecting single choice add 5 text box below the question… getting error of Cannot read property ‘addEventListener’ of null