Disabling Submit-button(s) when HTML Select is empty
<p>I am a programmer-to-be, currently working on a project at work.</p>

<p>My problem is this: I have 3 submit buttons (on the same form), that each call a different action. These buttons <strong>HAVE</strong> to be disabled, if the <code>HTML Selector</code> (dropdown) does not have any options to choose from.</p>

<p>My form currently looks like this:</p>

<pre><code>        &lt;form asp-action="Index" method="post" onkeypress="return event.keyCode != 13;"&gt;
        &lt;div class="col-md-9"&gt;

            &lt;div class="form-group form-inline"&gt;
                &lt;label asp-for="OrderNumber"&gt;Order number: &lt;/label&gt;
                &lt;input asp-for="OrderNumber" class="form-control" type="text" placeholder="Insert order number" autofocus /&gt;
            &lt;/div&gt;

            &lt;div&gt;
                &lt;label&gt;Delete&lt;/label&gt;
                &lt;input asp-for="Deletion" type="checkbox" /&gt;
            &lt;/div&gt;

            &lt;div&gt;
                &lt;div class="col-md-4"&gt;
                    &lt;input class="btn btn-block" type="submit" name="action" value="Receive" /&gt;
                &lt;/div&gt;
                &lt;div class="col-md-4"&gt;
                    &lt;input class="btn btn-block" type="submit" name="action" value="Start" /&gt;
                &lt;/div&gt;
                &lt;div class="col-md-4"&gt;
                    &lt;input class="btn btn-block" type="submit" name="action" value="Finish" /&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="col-md-3"&gt;
            &lt;div class="form-group form-inline"&gt;
                &lt;label asp-for="ProfileId"&gt;Profile: &lt;/label&gt;
                &lt;select asp-for="ProfileId" class="form-control"&gt;
                    @foreach (var p in Model.Profiles)
                    {
                        &lt;option value="@p.ProfileId"&gt;@p.Name&lt;/option&gt;
                    }
                &lt;/select&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/form&gt;
</code></pre>

<p>Thanks for any help, and if you need more information, or if this question is poorly described, do not hesitate to ask! :)</p>