JQuery select by inner text

前端 未结 3 1264
我寻月下人不归
我寻月下人不归 2020-12-30 05:19

I am doing a project with fullcalendar and I need to be able to select an element based on the day number. Here is a sample of the element I need to select:



        
3条回答
  •  没有蜡笔的小新
    2020-12-30 05:34

    $("div.fc-day-number").each(function (){
        if($(this).text()==day)
        {
            $(this).css({ 'background-color': 'Green' });
        }
    });
    

提交回复
热议问题