I get a syntax error:
SyntaxError: none) after argument list
From this jQuery code:
$("#createEnquiry").text(${noEnqMsg});
What errors cause a Javascript syntax error ?
I think you wanted to use string quotes:
$("#createEnquiry").text("${noEnqMsg}");
Or maybe you, although you used pattern strings :
$("#createEnquiry").text(`${noEnqMsg}`);
You may need to use the template strings as indicated in the code instruction below
ES6. ES5. , ES6 , . Chrome, Firefox. .
ES6