Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

modal nodejs

const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded());
app.post("/your/page", function (req, res) {
    const show_modal = !!req.body.modal; // Cast to boolean
    res.render("page", { show_modal });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #modal #nodejs
ADD COMMENT
Topic
Name
5+5 =