Anson Ng
Anson Ng

Reputation: 11

Is it possible to change some content of a view without completely re-render it in express.js

I am currently making a calendar where users can click on dates, and a popup window then shows the events of the date that user clicked at. However, we don't know which date the user will be clicked at before rendering, the content of the window cannot be determined. Is there any way I can dynamically change the content of an element after a user action ("click" or "hover") in Express.js?

Upvotes: 0

Views: 86

Answers (1)

Cam Smith
Cam Smith

Reputation: 69

Is there any way I can dynamically change the content of an element after a user action ("click" or "hover")

That would be the responsibility of client-side javascript. It seems like you need a in the html file your express code is serving.

Upvotes: 1

Related Questions