Reputation: 163
I'm trying to add css to a 'td' in a Table that is part of the fullcalender
The day cells have classes added fc-day0 to fc-day41
td element looks like this:
<td class="fc-mon fc-widget-content fc-day1">
I tried following:
$("td").filter("fc-day1")
.css("background", "red");
$("td").find("fc-day1")
.css("background", "red");
$("td").find($('td[class*=".fc-day1"]'))
.css("background", "red");
I appreciate your help =)
Upvotes: 2
Views: 108
Reputation: 666
You don't need jquery.
In a file css:
<style>
table td .fc-day1{
background:red;
}
</style>
Regards
Upvotes: 0
Reputation: 9031
if you want to filter out your collection of td and find all who has the class fc-day1 then use filter with a css selector:
$("td").filter(".fc-day1")
.css("background", "red");
Upvotes: 1