Attention: Please be aware of the environment in this Application. The following technologies are being used:
- Windows
- NPM, Express
- MySQL
This is the code in an ejs template called example.ejs
<% if (message) { %>
<p class="alert " id="errorMessage">
<%= message %>
</p>
<% } %>
I am trying to add a class to the p element.
This is what I have attempted so far but it hasn't worked.
messages = "Password Successfully Changed";
jQuery('#errorMessage').addClass('successMessage');
res.render('profile',{page_title:"My Profile",data:rows,message: messages});