you might need GET method too: Thanks for contributing an answer to Stack Overflow! Getting value from select tag using flask, Speeding software innovation with low-code/no-code tools, Tips and tricks for succeeding as a developer emigrating to Japan (Ep. Auto reloading python Flask app upon code changes. Been looking for someone to explain this so that I could understand it properly. Is `0.0.0.0/1` a valid IP address? I am trying to get the value from a dropdown menu which consists of numbers. So, if you submit your forms via POST, use request.form.get (). This answer delivers. How can I remove a key from a Python dictionary? How to dare to whistle or to hum in public? Sorry in advance if my formatting is off for the post (also new to Stack Overflow). Thanks for contributing an answer to Stack Overflow! What do you do in order to drag out lectures? Can we prosecute a person who confesses but there is no hard evidence? Then I want to compare the numbers with a value and display a text based on the comparison. Connect and share knowledge within a single location that is structured and easy to search. Can we prosecute a person who confesses but there is no hard evidence? Are softmax outputs of classifiers true probabilities? How can I randomly select an item from a list? . Why is it valid to say but not ? In this tutorial you will learn laravel dynamic dependent dropdown using ajax. Connect and share knowledge within a single location that is structured and easy to search. What is the difference between Python's list methods append and extend? However at the moment I can't even seem to get the POST of the form to work and am at a complete loss. Was J.R.R. I'm completely new to flask, and really am completely lost with how to approach this. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Method 1: Using the value property: The value of the selected element can be found by using the value property on the selected element that defines the list. I also want to use the value selected in drop down menu in other places as well. @ Mert Celik I tried it again after you edited, but still I am getting the same error Please help me resolve this issue. @MaredpallyJalebi i edited it, now it should works. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. It's hard to know for certain from what you've provided, but I believe you need to add method="POST" to your