Im building dynamic html based on results from a search I have an onclick function that needs to accept a variable id as an argument but its throwing an error. It sees the argument as text thus throwing an Uncaught ReferenceError: 1 is not defined.Im building dynamic html based on results from