How to use <%= item %> in jquery in EJS?
I can use it like this in <html> tags but I wonder if I can use it in <script> tags.
<strong> <%= userx.email %></strong> What I want is :
var email = userx.email; Try this:
<script type="text/javascript"> var email = ""; email = "<%=userx.email%>"; </script> That's it.
<script type="text/javascript"> is not working in EJS, I guess. Because I can't even log anything in it.