I want to pass two values to the function by clicking on the link, I do this:
onclick="gov('.$id.', "info") When clicking, I get an error in the chrome console: Uncaught ReferenceError: info is not defined at HTMLAnchorElement.onclick
Function: function gov(id, type) { ... }
at transfer of one value everything works. What could be the problem?
UPD. I noticed that if the second value is a digit, everything works, but there is no text.
on...attributes. Highly recommended - tutankhamun'info'in single quotes - yolosoraecho '<a ...>';- iKey