-1

I want to target the any date selection box but can't seem to find the right selector. It's a value "Any Date".

my code:

label[for="searchdatetimes"] {
  border-radius: 20px;
}
!-- Search by date section start -->
<div class="col-sm-4">
  <label for="search_datetimes">Any dates</label>
  <select name="search_datetimes[]" id="search_datetimes" class="event-manager-category- 
    dropdown" data-placeholder="Choose any date…" data- no_results_text="No results match" data- multiple_text="Select Some Options">
    <option value="">Any Date</option>
    <option value="datetime_today">Today</option>
    <option value="datetime_tomorrow">Tomorrow</option>
    <option value="datetime_thisweek">This Week</option>
    <option value="datetime_thisweekend">This Weekend
    </option>
    <option value="datetime_thismonth">This Month
    </option>
    <option value="datetime_thisyear">This Year</option>
    <option value="datetime_nextweek">Next Week
    </option>
    <option value="datetime_nextweekend">Next Weekend
    </option>
    <option value="datetime_nextmonth">Next Month
    </option>
    <option value="datetime_nextyear">Next Year</option>.
  </select>
</div>
!-- Search by date section end --
</div>
<!-- /row -->
<div class="row">
  <!--

Page is: https://adsler.co.uk/find-an-event/

I want to target the drop down box any date

Tried this too.

a [target~="Any Date"] {
background-color: yellow;
border-radius: 20px;
border: 3px #000 solid;} 

Nothing.

1 Answers1

0

Add

select{
  border-radius: 20px;
}

To your CSS

So, to better answer your initial question, the "Selector" you were trying to target was, appropriately, in this case, select.

You could also do it by id #search_datetimes if you needed to target just that element (if there are others).

Christopher Bennett
  • 803
  • 1
  • 8
  • 20
  • You can also add `outline: none;` to get rid of that ugly blue outline when you select the box (because the outline doesn't accept the curved radius). – Christopher Bennett May 03 '19 at 12:18