i have a html
<span class="filter-option pull-left">Day</span>
now i want to select Day by CSSselector how can i do that ?
I can go upto span via
.btn.dropdown-toggle.selectpicker.btn-default>span
but how to specify Day to be selected?
i have a html
<span class="filter-option pull-left">Day</span>
now i want to select Day by CSSselector how can i do that ?
I can go upto span via
.btn.dropdown-toggle.selectpicker.btn-default>span
but how to specify Day to be selected?
I guess that what you are trying to do is to apply some styles to the "Day" text. You can accomplish that by using an id or a class in your span element. For instance:
<span id="my-id" class="filter-option pull-left">Day</span>
and then in you styles file use it in the way:
#my-id{
/* some styles */
}
If what you want to do is get the content of the span("Day") it is not possible using just CSS, for that to work you'll need to use Javascript. This could help: Get value of Span Text