[Solved] Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick

Cause: The string is not quoted
Uncaught ReferenceError:  is not defined at HTMLAnchorElement.onclick

var msg= "Type:" + source_type_name + "<br> Order number.<a href='javascript:void(0)' οnclick='rOrderDetail("+"\""+source_id+"\""+","+city_id+")'>" + source_id +"</a>";


Read More: