Categories
EJS How to work with DOM elements?
Is it possible for example (how) to get the value of a DOM element in an EJS tag? Something like this:
<% var sender = document.getElementById("sender"); %>
Answer the question
In order to leave comments, you need to log in
no, you can't, ejs is templating on the backend side, there is no DOM DOM is built by the browser
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question