title: Multiselect, Jquery: Check my multiple select if at least one options should be selected
body: <p>Hi I will summarize my problem I hope you would understand.</p>
  
  <p><strong>Main Goal:</strong> To check if at least one of the options is selected before hitting the select button. else, If select button is clicked without choosing at least one options, it will show a message of "Please choose at least one options".</p>
  
  <p><strong>Purpose:</strong> I have reasons in my other codes that needed a select button instead of just selecting multiple selects and doesn't need a button.</p>
  
  <p>The form looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/RGcTA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RGcTA.png" alt="enter image description here"></a></p>
  
  <p><strong>SIMPLE HTML CODE:</strong></p>
  
  <pre><code>&lt;div class="form-group"&gt;
    // My Select Id is monthlymonth
  
    &lt;label for="monthlymonth" class="col-sm-4 control-label"&gt;For the Month Of: &lt;/label&gt;
    &lt;div class="col-sm-6" id=monthlymonthdiv&gt;
        &lt;select class="form-control" name="monthlymonth[]" id="monthlymonth" multiple&gt;
            &lt;option&gt; October &lt;/option&gt;
            &lt;option&gt; November &lt;/option&gt;
            &lt;option&gt; December &lt;/option&gt;
        &lt;/select&gt;
     &lt;/div&gt;
  
     /My Select button, Id is monthsubmit.
     &lt;input style="text-align:center; width: 60px;" type="button" id="monthsubmit" name="monthsubmit" value="Select"&gt;
  
     &lt;input style="text-align:center; width: 60px;" type="button" id="clear" name="clear" value="Clear"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Now for my JQuery:</strong></p>
  
  <pre><code>$("#monthsubmit").unbind('click').bind('click', function() {
    if (// code that checks if no options is selected at least one)
    {
      alert('Please choose at least one month');
    }
    else
    {
      // my other codes
    }
  });
  </code></pre>