Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Second <Select> is not showing on browser

I’m having issues with my last row not showing at all when I compile the program. I tried many things but there seems to ben an issue with the Select tag because what ever I try to add after the first Select row doesn’t show up.

What am I missing?

Here is my code:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  <!DOCTYPE html>
  <html lang="en">

  <head>
      <link rel="stylesheet" href="~/css/OpenStore.css" asp-append-version="true" />
  </head>

      <p align="center" style="color:red">
          Open Store
      </p>

      <div class="OpenStore">
          <form class="form-horizontal" asp-action="SearchStore" asp-controller="Home" method="get" enctype = "multipart/form-data">

              <div class="row">
                  <div class="form-group form-group-sm col-sm-6 col-md-13">
                      <div class="row col-md-13">
                          <label class="col-form-label col-md-6">Store # :</label>
                          <div class="col-sm-3">
                              <input class="form-control form-control-sm" asp-for="StoreId" value="" style="width:100px;" />
                          </div>
                      </div>
                  </div>
              </div>

              <div class="row">
                  <div class="form-group form-group-sm col-sm-6 col-md-13">
                      <div class="row">
                          <label class="col-form-label col-md-6">Store Name :</label>
                          <div class="col-sm-3">
                              <input class="form-control form-control-sm" asp-for="StoreDescription" value="" style="width:350px;" />
                          </div>
                      </div>
                  </div>
              </div>

              <div class="row">
                  <div class="form-group form-group-sm col-sm-6 col-md-13">
                      <div class="row">
                          <label class="col-form-label col-md-6">Language :</label>
                          <div class="col-sm-3">
                              <select list="Languages" asp-for="LanguageId" class="form-control form-control-sm" id="Language" style="width:100px"/>
                              <datalist id="Languages">
                                  <option data-value="English">English</option>
                                  <option data-value="Fr">French</option>
                              </datalist>
                          </div>
                      </div>
                  </div>
              </div>

              <div class="row">
                  <div class="form-group form-group-sm col-sm-6 col-md-13">
                      <div class="row">
                          <label class="col-form-label col-md-6">Group :</label>
                          <div class="col-sm-3">
                              <select list="Groups" asp-for="StoreTypeId" class="form-control form-control-sm" id="Group" style="width:100px"/>
                              <datalist id="Groups">
                                  <option data-value="2">>Laura</option>
                                  <option data-value="3">Melanie Lyne</option>
                              </datalist>
                          </div>
                      </div>
                  </div>
              </div>

          </form>
      </div>
  </html>

Here is what it looks like in chrome:

html render

>Solution :

The list attribute is not valid for select. Try this…

<select asp-for="LanguageId" class="form-control form-control-sm" id="Language"
    style="width:100px">
    <option data-value="English">English</option>
    <option data-value="Fr">French</option>
</select>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading