Get dropdown value using Express in node.js from html page

前端 未结 3 1477
花落未央
花落未央 2021-01-31 12:08

I am developing a quick node.js app using express and I am a newbie to NODE. For pages I am just using plain html.

Basically I have a form as follows:

 &         


        
3条回答
  •  天命终不由人
    2021-01-31 12:57

    You can use req.query.selectpicker for getting data from the 'select' element as a URL query Parameter. This worked for me!

    Keep the method GET and action as the route name in which you want to access the dropdown data.

提交回复
热议问题