HTML datalist tag is not working properly

I am trying to make a password generator with HTML, CSS and JS. It allows user to pick their password length from a dropdown input field. However, somehow the datalist tag I have used for it, is not working. It shows the input field but not with the dropdown button. Any help would be nice.

<form action="" class="my-form">
  <label for="browser">Password length: </label>
  <input list="passList" name="passList" id="passList">

  <datalist id="passList">
                <option value="8">
                <option value="10">
                <option value="12">
                <option value="14">
                <option value="16">
                <option value="18">

251 thoughts on “HTML datalist tag is not working properly”

  1. Pingback: bacon keto diet
  2. 306476 562725Aw, this was a truly good post. In concept I wish to put in writing like this in addition – taking time and actual effort to make an exceptional article nonetheless what can I say I procrastinate alot and not at all appear to get something done. 444185

  3. Its like you read my thoughts! You appear to grasp a lot about this, like you wrote the book in it or something. I believe that you just can do with some percent to pressure the message house a little bit, however instead of that, this is fantastic blog. An excellent read. I’ll certainly be back.|


Leave a Comment