A
A
Artem_952019-05-22 17:35:36
HTML
Artem_95, 2019-05-22 17:35:36

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

1 answer(s)
R
RidgeA, 2019-05-22
@RidgeA

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 your question

Ask a Question

731 491 924 answers to any question